]> www.infradead.org Git - users/jedix/linux-maple.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>
Mon, 12 Apr 2021 04:22:18 +0000 (23:22 -0500)
commit2e20b643a91c13909f6c74d5d4b5c5916f7f24fd
tree1f3cc76796bd4c823e7673aaf34d484183eaf4ff
parent6c05ea8bb022fe621fc64843090cbb005f8424a9
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