]> 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, 19 Apr 2021 00:20:49 +0000 (19:20 -0500)
commit61f6cffd3442abf8caadb98b7a1009be73201595
tree7ea0d219942842be3b5cab183b4985b322c5ded8
parent15c04519b19512bbac7d2c64319b4ee2051aa1be
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