]> Git Repo - linux.git/commit
smb/client: Prevent error pointer dereference
authorDan Carpenter <[email protected]>
Wed, 20 Nov 2024 17:18:31 +0000 (20:18 +0300)
committerSteve French <[email protected]>
Thu, 21 Nov 2024 16:43:23 +0000 (10:43 -0600)
commit7a2158b73c36903e8822dae5442c27d6d0e1014b
tree8d076d7543fd818eeb8984ca16f67afe3b64acf0
parentd413eabff18d640031fc955d107ad9c03c3bf9f1
smb/client: Prevent error pointer dereference

The cifs_sb_tlink() function can return error pointers, but this code
dereferences it before checking for error pointers.  Re-order the code
to fix that.

Fixes: 0f9b6b045bb2 ("fs/smb/client: implement chmod() for SMB3 POSIX Extensions")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Bharath SM <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/smb/client/cifsacl.c
This page took 0.057422 seconds and 4 git commands to generate.