[PATCH 2/7] kernfs: fix potential null pointer dereference