From eee4f0712537bdbccc9c31e7670d3b959a29b52a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 9 Sep 2003 06:22:22 -0700 Subject: [PATCH] From Stephen Hemminger: we were trying to cast an "unsigned short" to a pointer. That was a typo. Ack'ed by Al Viro. --- fs/jffs/inode-v23.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 915f3a57af460..b8a284f1bee37 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c @@ -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)); } -- 2.53.0