commit | 0a73d0a204a4a04a1e110539c5a524ae51f91d6d | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 12 10:34:29 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 12 11:22:05 2015 -0400 |
tree | ff24244f8ae4d5ddf389878e8743c055a24bc23e | |
parent | 1c4c7159ed2468f3ac4ce5a7f08d79663d381a93 [diff] [blame] |
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>
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 09e44337..e8aa57d 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c
@@ -149,8 +149,7 @@ unlock_new_inode(inode); return inode; error: - unlock_new_inode(inode); - iput(inode); + iget_failed(inode); return ERR_PTR(retval); }