提交 a8b75f66 编写于 作者: A Al Viro

cifs_lookup(): cifs_get_inode_...() never returns 0 with *inode left NULL

not since 2004...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 500e2ab6
......@@ -812,7 +812,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
parent_dir_inode->i_sb, xid, NULL);
}
if ((rc == 0) && (newInode != NULL)) {
if (rc == 0) {
d_add(direntry, newInode);
/* since paths are not looked up by component - the parent
directories are presumed to be good here */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册