projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9eaa44
)
fs/9p: adjust sscanf parameters accordingly to the variable types
author
Toralf Förster
<toralf.foerster@gmx.de>
Sat, 26 Apr 2014 17:28:13 +0000
(19:28 +0200)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Sun, 1 Jun 2014 20:29:43 +0000
(15:29 -0500)
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c
patch
|
blob
|
history
diff --git
a/fs/9p/vfs_inode.c
b/fs/9p/vfs_inode.c
index
53161ec
..
7ccf6de
100644
(file)
--- 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;