From: Al Viro Date: Wed, 6 May 2009 05:35:04 +0000 (-0400) Subject: Fix a leak in failure exit in 9p ->get_sb() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c96f58573778ddf96ff67108a635f3f642ea63d3;p=linux-beck.git Fix a leak in failure exit in 9p ->get_sb() Signed-off-by: Al Viro --- 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, root = d_alloc_root(inode); if (!root) { + iput(inode); retval = -ENOMEM; goto release_sb; }