Commit 74553b1b authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

cifs: fix inverted NULL check after kmalloc

cifs: fix inverted NULL check after kmalloc
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment