summaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode_dotl.c
diff options
context:
space:
mode:
authorAl Viro2015-07-12 16:34:29 +0200
committerAl Viro2015-07-12 17:22:05 +0200
commit0a73d0a204a4a04a1e110539c5a524ae51f91d6d (patch)
treeff24244f8ae4d5ddf389878e8743c055a24bc23e /fs/9p/vfs_inode_dotl.c
parentMerge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-qcow2-linux-0a73d0a204a4a04a1e110539c5a524ae51f91d6d.tar.gz
kernel-qcow2-linux-0a73d0a204a4a04a1e110539c5a524ae51f91d6d.tar.xz
kernel-qcow2-linux-0a73d0a204a4a04a1e110539c5a524ae51f91d6d.zip
9p: don't leave a half-initialized inode sitting around
Cc: stable@vger.kernel.org # all branches Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_inode_dotl.c')
-rw-r--r--fs/9p/vfs_inode_dotl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 09e4433717b8..e8aa57dc8d6d 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -149,8 +149,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
unlock_new_inode(inode);
return inode;
error:
- unlock_new_inode(inode);
- iput(inode);
+ iget_failed(inode);
return ERR_PTR(retval);
}