]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10d59b3c541c7bdb0fb6600a5d483d008f7365a8
tree1fc692e8187744f8f2ded4f301ba3874e787fb27
parent7aeb68c507aa2b6af429add09241d7f6f2c75a7a
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