Commit eee4f071 authored by Linus Torvalds's avatar Linus Torvalds

From Stephen Hemminger: we were trying to cast an "unsigned short"

to a pointer. That was a typo.

Ack'ed by Al Viro.
parent e922ffb2
......@@ -1734,7 +1734,7 @@ jffs_read_inode(struct inode *inode)
the device should be read from the flash memory and then
added to the inode's i_rdev member. */
u16 val;
jffs_read_data(f, (char *)val, 0, 2);
jffs_read_data(f, (char *)&val, 0, 2);
init_special_inode(inode, inode->i_mode,
old_decode_dev(val));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment