提交 0a73d0a2 编写于 作者: A Al Viro

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

Cc: stable@vger.kernel.org # all branches
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 1c4c7159
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册