smb3: add additional null check in SMB2_open
authorSteve French <stfrench@microsoft.com>
Thu, 11 Nov 2021 22:10:00 +0000 (16:10 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 16:21:51 +0000 (10:21 -0600)
commit6b7895182ce398fa474af8cfc051754e6539c6b1
treeb14e19724eb18a71fef885e19018fc96196cc5e0
parent4d9beec22f731655f1a41f91cd747a29892533e5
smb3: add additional null check in SMB2_open

Although unlikely to be possible for rsp to be null here,
the check is safer to add, and quiets a Coverity warning.

Addresses-Coverity: 1418458 ("Explicit null dereferenced")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c