Merge tag 'for-linus-3.16-merge-window' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git] / fs / 9p / vfs_inode.c
index 00d140f..7fa4f7a 100644 (file)
@@ -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;