mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7e32b7bb73
commit
083c73c253
@ -188,7 +188,8 @@ static void v9fs_kill_super(struct super_block *s)
|
||||
|
||||
P9_DPRINTK(P9_DEBUG_VFS, " %p\n", s);
|
||||
|
||||
v9fs_dentry_release(s->s_root); /* clunk root */
|
||||
if (s->s_root)
|
||||
v9fs_dentry_release(s->s_root); /* clunk root */
|
||||
|
||||
kill_anon_super(s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user