aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-04-26 06:10:06 -0400
committerSteve French <sfrench@us.ibm.com>2010-04-26 15:08:01 -0400
commitad6cca6d5d0f713e1987e20ed982cfa9eb16b27e (patch)
tree996437a3ded92acbd27decc9695b6c895c99a7c0 /fs/cifs
parent04912d6a20185473db025061b9b2c81fbdffc48b (diff)
cifs: change && to ||
This is a typo, if pvolume_info were NULL it would oops. This function is used in clean up and error handling. The current code never passes a NULL pvolume_info, but it could pass a NULL *pvolume_info if the kmalloc() failed. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-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/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index c2793bd1db4a..7a47c7c5c7e3 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2421,7 +2421,7 @@ cleanup_volume_info(struct smb_vol **pvolume_info)
2421{ 2421{
2422 struct smb_vol *volume_info; 2422 struct smb_vol *volume_info;
2423 2423
2424 if (!pvolume_info && !*pvolume_info) 2424 if (!pvolume_info || !*pvolume_info)
2425 return; 2425 return;
2426 2426
2427 volume_info = *pvolume_info; 2427 volume_info = *pvolume_info;