In the Linux kernel, the following vulnerability has been resolved: kernfs: fix potential NULL dereference in _kernfsremove When lockdep is enabled, lockdepassertheldwrite 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)