Skip to content

Commit

Permalink
fix oops in fs/9p late mount failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Jan 27, 2010
1 parent 7e32b7b commit 083c73c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/9p/vfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 083c73c

Please sign in to comment.