aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-11-20 17:18:31 +0000
committerSteve French <[email protected]>2024-11-21 16:43:23 +0000
commit7a2158b73c36903e8822dae5442c27d6d0e1014b (patch)
tree8d076d7543fd818eeb8984ca16f67afe3b64acf0 /rust/helpers/mutex.c
parentfs/smb/client: implement chmod() for SMB3 POSIX Extensions (diff)
downloadkernel-7a2158b73c36903e8822dae5442c27d6d0e1014b.tar.gz
kernel-7a2158b73c36903e8822dae5442c27d6d0e1014b.zip
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]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions