提交 74553b1b 编写于 作者: J Jeff Layton 提交者: Steve French

cifs: fix inverted NULL check after kmalloc

cifs: fix inverted NULL check after kmalloc
Signed-off-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 9d815234
......@@ -1274,7 +1274,7 @@ int cifs_rename(struct inode *source_inode, struct dentry *source_direntry,
info_buf_source =
kmalloc(2 * sizeof(FILE_UNIX_BASIC_INFO),
GFP_KERNEL);
if (info_buf_source != NULL)
if (info_buf_source == NULL)
goto unlink_target;
info_buf_target = info_buf_source + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册