diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-07-12 10:34:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-07-12 11:22:05 -0400 |
commit | 0a73d0a204a4a04a1e110539c5a524ae51f91d6d (patch) | |
tree | ff24244f8ae4d5ddf389878e8743c055a24bc23e /fs/9p/vfs_inode.c | |
parent | 1c4c7159ed2468f3ac4ce5a7f08d79663d381a93 (diff) | |
download | op-kernel-dev-0a73d0a204a4a04a1e110539c5a524ae51f91d6d.zip op-kernel-dev-0a73d0a204a4a04a1e110539c5a524ae51f91d6d.tar.gz |
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.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 510040b..b1dc518 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -540,8 +540,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb, unlock_new_inode(inode); return inode; error: - unlock_new_inode(inode); - iput(inode); + iget_failed(inode); return ERR_PTR(retval); } |