Skip to content

Commit 82382ac

Browse files
author
Al Viro
committed
kernfs: deal with kernfs_fill_super() failures
make sure that info->node is initialized early, so that kernfs_kill_sb() can list_del() it safely. Signed-off-by: Al Viro <[email protected]>
1 parent 08a8f30 commit 82382ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/kernfs/mount.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ struct dentry *kernfs_mount_ns(struct file_system_type *fs_type, int flags,
316316

317317
info->root = root;
318318
info->ns = ns;
319+
INIT_LIST_HEAD(&info->node);
319320

320321
sb = sget_userns(fs_type, kernfs_test_super, kernfs_set_super, flags,
321322
&init_user_ns, info);

0 commit comments

Comments
 (0)