Skip to content
Snippets Groups Projects
Commit 0a73d0a2 authored by Al Viro's avatar Al Viro
Browse files

9p: don't leave a half-initialized inode sitting around


Cc: stable@vger.kernel.org # all branches
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1c4c7159
No related merge requests found
......@@ -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);
}
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment