]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a83e25e00f062f90fc2b2fd81ba2f149a9b7e5e
treeb14e19724eb18a71fef885e19018fc96196cc5e0
parent18e769d9fe4c217381391476d3e04cf39e46aed9
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