aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2021-01-31 19:40:40 +0000
committerAl Viro <[email protected]>2021-02-23 15:25:28 +0000
commit9652c73246b980b9f2387916c35e02638d163472 (patch)
treedda4241b387d15af70c663e1107fec5fbf135d73 /scripts/gcc-plugins/structleak_plugin.c
parentaudit_alloc_mark(): don't open-code ERR_CAST() (diff)
downloadkernel-9652c73246b980b9f2387916c35e02638d163472.tar.gz
kernel-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 <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions