dect
/
linux-2.6
Archived
13
0
Fork 0

cifs: fix inverted NULL check after kmalloc

cifs: fix inverted NULL check after kmalloc

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Jeff Layton 2008-09-24 14:55:51 -04:00 committed by Steve French
parent 9d81523480
commit 74553b1b6a
1 changed files with 1 additions and 1 deletions

View File

@ -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;