Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad6cca6d authored by Dan Carpenter's avatar Dan Carpenter Committed by Steve French
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 04912d6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2421,7 +2421,7 @@ cleanup_volume_info(struct smb_vol **pvolume_info)
{
	struct smb_vol *volume_info;

	if (!pvolume_info && !*pvolume_info)
	if (!pvolume_info || !*pvolume_info)
		return;

	volume_info = *pvolume_info;