diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-31 22:40:40 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-02-23 18:25:28 +0300 |
commit | 9652c73246b980b9f2387916c35e02638d163472 (patch) | |
tree | dda4241b387d15af70c663e1107fec5fbf135d73 /fs/gfs2 | |
parent | b1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad (diff) | |
download | linux-9652c73246b980b9f2387916c35e02638d163472.tar.xz |
9p: fix misuse of sscanf() in v9fs_stat2inode()
1) sscanf() return value needs to be checked, damnit
2) sscanf() is perfectly capable of checking for fixed prefix,
no need for that %13s + strncmp with constant string.
3) st->extension is a valid string; no need for voodoo with
str*cpy() there.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions