diff options
author | Namjae Jeon <[email protected]> | 2023-05-30 21:42:34 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2023-06-02 12:30:57 -0500 |
commit | 25933573ef48f3586f559c2cac6c436c62dcf63f (patch) | |
tree | 26b7227c239f12d29a5432b0d4a779a7ec32dd45 /drivers/gpu/drm/omapdrm/omap_drv.c | |
parent | fc6c6a3c324c1b3e93a03d0cfa3749c781f23de0 (diff) |
ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR()
Dan reported the following error message:
fs/smb/server/smbacl.c:1296 smb_check_perm_dacl()
error: 'posix_acls' dereferencing possible ERR_PTR()
fs/smb/server/vfs.c:1323 ksmbd_vfs_make_xattr_posix_acl()
error: 'posix_acls' dereferencing possible ERR_PTR()
fs/smb/server/vfs.c:1830 ksmbd_vfs_inherit_posix_acl()
error: 'acls' dereferencing possible ERR_PTR()
__get_acl() returns a mix of error pointers and NULL. This change it
with IS_ERR_OR_NULL().
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Cc: [email protected]
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.c')
0 files changed, 0 insertions, 0 deletions