]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add additional null check in SMB311_posix_mkdir
authorSteve French <stfrench@microsoft.com>
Thu, 11 Nov 2021 21:35:34 +0000 (15:35 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 18:59:54 +0000 (12:59 -0600)
commit742febf5dc012da14897279419115fad9eb6389f
tree04323135fdb5544faffcdf802775d3f30eb46abe
parentdad0581e789d569bbd5d6dd313953b60ee150c14
smb3: add additional null check in SMB311_posix_mkdir

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: 1437501 ("Explicit Null dereference")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c