summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/recovery.h
diff options
context:
space:
mode:
authorYushan Zhou <katrinzhou@tencent.com>2022-06-30 10:25:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-01 10:36:36 +0200
commit72b5d5aef246a0387cefa23121dd90901c7a691a (patch)
tree9bffd0b9f249efd1ad75b96c367d1fa878aa4336 /fs/gfs2/recovery.h
parentfirmware: Hold a reference for of_find_compatible_node() (diff)
downloadlinux-72b5d5aef246a0387cefa23121dd90901c7a691a.tar.xz
linux-72b5d5aef246a0387cefa23121dd90901c7a691a.zip
kernfs: fix potential NULL dereference in __kernfs_remove
When lockdep is enabled, lockdep_assert_held_write would cause potential NULL pointer dereference. Fix the following smatch warnings: fs/kernfs/dir.c:1353 __kernfs_remove() warn: variable dereferenced before check 'kn' (see line 1346) Fixes: 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs lock") Signed-off-by: Yushan Zhou <katrinzhou@tencent.com> Link: https://lore.kernel.org/r/20220630082512.3482581-1-zys.zljxml@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/gfs2/recovery.h')
0 files changed, 0 insertions, 0 deletions