summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-09-24 20:55:51 +0200
committerSteve French <sfrench@us.ibm.com>2008-09-24 20:55:11 +0200
commit74553b1b6a8556e08757b4bce537fd8332b93898 (patch)
tree84513606c9902e7969886f2389d4fb7da2272a8a /fs/cifs
parent[CIFS] clean up upcall handling for dns_resolver keys (diff)
downloadlinux-74553b1b6a8556e08757b4bce537fd8332b93898.tar.xz
linux-74553b1b6a8556e08757b4bce537fd8332b93898.zip
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/inode.c2
1 files changed, 1 insertions, 1 deletions
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;