]> www.infradead.org Git - users/jedix/linux-maple.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)
commitca780da5fdd389d391eff5ac954ee8b91953125d
tree04323135fdb5544faffcdf802775d3f30eb46abe
parent9e7ffa77b26a8a00a12b6631aa13f161d9900b0c
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