]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add additional null check in SMB2_ioctl
authorSteve French <stfrench@microsoft.com>
Thu, 11 Nov 2021 20:39:23 +0000 (14:39 -0600)
committerSteve French <stfrench@microsoft.com>
Thu, 11 Nov 2021 20:49:24 +0000 (14:49 -0600)
commit1a0e781a6c5de8462bf5c84cdff230d8a48e05cc
tree9f7649975c6d916f378fdddf356c94ce5b8cfd81
parent7d1aa7c7764ef5a07eb0df13335ba3fe91bef082
smb3: add additional null check in SMB2_ioctl

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

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