Skip to content

Commit

Permalink
Fix a leak in failure exit in 9p ->get_sb()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 9, 2009
1 parent 6f5bbff commit c96f585
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/9p/vfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,

root = d_alloc_root(inode);
if (!root) {
iput(inode);
retval = -ENOMEM;
goto release_sb;
}
Expand Down

0 comments on commit c96f585

Please sign in to comment.