diff options
-rw-r--r-- | fs/9p/vfs_super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 0d29a57c63e6..ab5547ff29a1 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
@@ -156,6 +156,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags, | |||
156 | 156 | ||
157 | root = d_alloc_root(inode); | 157 | root = d_alloc_root(inode); |
158 | if (!root) { | 158 | if (!root) { |
159 | iput(inode); | ||
159 | retval = -ENOMEM; | 160 | retval = -ENOMEM; |
160 | goto release_sb; | 161 | goto release_sb; |
161 | } | 162 | } |