]> 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)
commit631917ffb4776f461dec68f9beafd7c16ba8bbd9
treeb14e19724eb18a71fef885e19018fc96196cc5e0
parent1a0e781a6c5de8462bf5c84cdff230d8a48e05cc
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