Commit 083c73c2 authored by Al Viro's avatar Al Viro

fix oops in fs/9p late mount failure

if 9P ->get_sb() fails late (at root inode or root dentry
allocation), we'll hit its ->kill_sb() with NULL ->s_root
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7e32b7bb
...@@ -188,6 +188,7 @@ static void v9fs_kill_super(struct super_block *s) ...@@ -188,6 +188,7 @@ static void v9fs_kill_super(struct super_block *s)
P9_DPRINTK(P9_DEBUG_VFS, " %p\n", s); P9_DPRINTK(P9_DEBUG_VFS, " %p\n", s);
if (s->s_root)
v9fs_dentry_release(s->s_root); /* clunk root */ v9fs_dentry_release(s->s_root); /* clunk root */
kill_anon_super(s); kill_anon_super(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment