commit | 82382acec0c97b91830fff7130d0acce4ac4f3f3 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 03 00:22:29 2018 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon May 21 14:30:08 2018 -0400 |
tree | 916207a3a6819177f57c5509e81d7446dd47aba2 | |
parent | 08a8f3086880325433d66b2dc9cdfb3f095adddf [diff] |
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 <viro@zeniv.linux.org.uk>
diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c index 26dd9a5..ff2716f 100644 --- a/fs/kernfs/mount.c +++ b/fs/kernfs/mount.c
@@ -316,6 +316,7 @@ info->root = root; info->ns = ns; + INIT_LIST_HEAD(&info->node); sb = sget_userns(fs_type, kernfs_test_super, kernfs_set_super, flags, &init_user_ns, info);