From: Jeff Layton Date: Wed, 24 Sep 2008 18:55:51 +0000 (-0400) Subject: cifs: fix inverted NULL check after kmalloc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74553b1b6a8556e08757b4bce537fd8332b93898;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cifs: fix inverted NULL check after kmalloc cifs: fix inverted NULL check after kmalloc Signed-off-by: Jeff Layton Signed-off-by: Steve French --- diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 82612be9477b..079f39a8dd3b 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -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;