smb3: fix possible access to uninitialized pointer to DACL
authorSteve French <stfrench@microsoft.com>
Tue, 22 Jun 2021 22:54:50 +0000 (17:54 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 00:26:40 +0000 (19:26 -0500)
commita5628263a9f8d47d9a1548fe9d5d75ba4423a735
treec92046bc8bab44be82d32acb484e56c2392b9afb
parent0917310b984c1ac24da2be0ebe992539b9ba94ed
smb3: fix possible access to uninitialized pointer to DACL

dacl_ptr can be null so we must check for it everywhere it is
used in build_sec_desc.

Addresses-Coverity: 1475598 ("Explicit null dereference")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c