aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorJinjie Ruan <[email protected]>2024-10-27 23:28:30 +0000
committerNamjae Jeon <[email protected]>2024-10-27 23:30:05 +0000
commit3abab905b14f4ba756d413f37f1fb02b708eee93 (patch)
treef02c78285fb3782bffe2741f8c777ee033f65212 /rust/helpers/helpers.c
parentLinux 6.12-rc5 (diff)
downloadkernel-3abab905b14f4ba756d413f37f1fb02b708eee93.tar.gz
kernel-3abab905b14f4ba756d413f37f1fb02b708eee93.zip
ksmbd: Fix the missing xa_store error check
xa_store() can fail, it return xa_err(-EINVAL) if the entry cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed, so check error for xa_store() to fix it. Cc: [email protected] Fixes: b685757c7b08 ("ksmbd: Implements sess->rpc_handle_list as xarray") Signed-off-by: Jinjie Ruan <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions