smb3: fix possible access to uninitialized pointer to DACL

[ Upstream commit a5628263a9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Steve French 2021-06-22 17:54:50 -05:00 • committed by Greg Kroah-Hartman
commit fee404cb46