From: Toralf Förster Date: Sat, 26 Apr 2014 17:28:13 +0000 (+0200) Subject: fs/9p: adjust sscanf parameters accordingly to the variable types X-Git-Tag: firefly_0821_release~176^2~3814^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=afe604d01ff62dd664440692d1c13d18578ddeaa;p=firefly-linux-kernel-4.4.55.git fs/9p: adjust sscanf parameters accordingly to the variable types Signed-off-by: Toralf Förster Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 53161ec058a7..7ccf6de516a3 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, int major = -1, minor = -1; strlcpy(ext, stat->extension, sizeof(ext)); - sscanf(ext, "%c %u %u", &type, &major, &minor); + sscanf(ext, "%c %i %i", &type, &major, &minor); switch (type) { case 'c': res |= S_IFCHR;