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 _kernfsremove() warn: variable dereferenced before check 'kn' (see line 1346)