]> git.hungrycats.org Git - linux/commitdiff
From Stephen Hemminger: we were trying to cast an "unsigned short"
authorLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 13:22:22 +0000 (06:22 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 13:22:22 +0000 (06:22 -0700)
to a pointer. That was a typo.

Ack'ed by Al Viro.

fs/jffs/inode-v23.c

index 915f3a57af4607cefc34cde500f0c0197d1e5af0..b8a284f1bee37b70f5fcb4d805b893b6ab0b1fa9 100644 (file)
@@ -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));
        }