]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add additional null check in SMB2_tcon
authorSteve French <stfrench@microsoft.com>
Thu, 11 Nov 2021 22:18:14 +0000 (16:18 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 16:22:05 +0000 (10:22 -0600)
commit9a065ee920dcb920fd389c8bd9e612a5d188d52a
tree267fbd915f7a4691b1f9c25ab19bd7079653a775
parent3a83e25e00f062f90fc2b2fd81ba2f149a9b7e5e
smb3: add additional null check in SMB2_tcon

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

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