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 /fs/gfs2/inode.c | |
parent | audit_alloc_mark(): don't open-code ERR_CAST() (diff) | |
download | linux-dev-9652c73246b980b9f2387916c35e02638d163472.tar.xz linux-dev-9652c73246b980b9f2387916c35e02638d163472.zip |
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/inode.c')
0 files changed, 0 insertions, 0 deletions