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