diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-10-28 00:28:30 +0100 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-10-28 00:30:05 +0100 |
commit | 3abab905b14f4ba756d413f37f1fb02b708eee93 (patch) | |
tree | f02c78285fb3782bffe2741f8c777ee033f65212 /fs/afs/misc.c | |
parent | Linux 6.12-rc5 (diff) | |
download | linux-3abab905b14f4ba756d413f37f1fb02b708eee93.tar.xz linux-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: stable@vger.kernel.org
Fixes: b685757c7b08 ("ksmbd: Implements sess->rpc_handle_list as xarray")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/afs/misc.c')
0 files changed, 0 insertions, 0 deletions