summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-05-06 01:35:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-05-09 10:49:40 -0400
commitc96f58573778ddf96ff67108a635f3f642ea63d3 (patch)
tree2dece203929c557a0247a1898be406f94fc51269 /fs/9p
parent6f5bbff9a1b7d6864a495763448a363bbfa96324 (diff)
downloadkernel-crypto-c96f58573778ddf96ff67108a635f3f642ea63d3.tar.gz
kernel-crypto-c96f58573778ddf96ff67108a635f3f642ea63d3.tar.xz
kernel-crypto-c96f58573778ddf96ff67108a635f3f642ea63d3.zip
Fix a leak in failure exit in 9p ->get_sb()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 0d29a57c63e..ab5547ff29a 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,
root = d_alloc_root(inode);
if (!root) {
+ iput(inode);
retval = -ENOMEM;
goto release_sb;
}