]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b8724ce2edd78f1be9e80912ca3b0cc6bd264d7
treec92046bc8bab44be82d32acb484e56c2392b9afb
parenta3caa165cf8af1d3c51a2bb512a8496c8f7f1c18
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