cifsd: fix static checker warning from smb_check_perm_dacl()
authorNamjae Jeon <namjae.jeon@samsung.com>
Fri, 19 Mar 2021 04:52:12 +0000 (13:52 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:21 +0000 (19:15 -0500)
commit50355b0b20103a2be39e269a92909fa69f16f2d0
tree1fc692e8187744f8f2ded4f301ba3874e787fb27
parentbc3fcc9462ef4ba3ae66593cbaf47bf7af703ed3
cifsd: fix static checker warning from smb_check_perm_dacl()

Dan reported static checker warning:

  fs/cifsd/smbacl.c:1140 smb_check_perm_dacl()
  error: we previously assumed 'pntsd' could be null (see line 1137)

This patch validate bounds of pntsd buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smbacl.c