diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-31 14:40:40 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-02-23 10:25:28 -0500 |
commit | 9652c73246b980b9f2387916c35e02638d163472 (patch) | |
tree | dda4241b387d15af70c663e1107fec5fbf135d73 /drivers | |
parent | b1adbdbda458b2ec69bf5915c4dcdbe2bd5e7bad (diff) |
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 'drivers')
0 files changed, 0 insertions, 0 deletions