Re: [PATCH] ksmbd: Fix the missing xa_store error check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 26, 2024 at 4:10 PM Jinjie Ruan <ruanjinjie@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx
> Fixes: b685757c7b08 ("ksmbd: Implements sess->rpc_handle_list as xarray")
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
Applied it to #ksmbd-for-next-next.
Thanks!





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux