Commit 82382acec0c97b91830fff7130d0acce4ac4f3f3

Authored by Al Viro
1 parent 08a8f30868

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -316,6 +316,7 @@
316 316  
317 317 info->root = root;
318 318 info->ns = ns;
  319 + INIT_LIST_HEAD(&info->node);
319 320  
320 321 sb = sget_userns(fs_type, kernfs_test_super, kernfs_set_super, flags,
321 322 &init_user_ns, info);