Commit c96f5857 authored by Al Viro's avatar Al Viro

Fix a leak in failure exit in 9p ->get_sb()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6f5bbff9
...@@ -156,6 +156,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags, ...@@ -156,6 +156,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,
root = d_alloc_root(inode); root = d_alloc_root(inode);
if (!root) { if (!root) {
iput(inode);
retval = -ENOMEM; retval = -ENOMEM;
goto release_sb; goto release_sb;
} }
......
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