Re: [PATCH] ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails

From: Namjae Jeon
Date: Mon Feb 05 2024 - 06:45:40 EST


2024-02-05 20:19 GMT+09:00, Fedor Pchelkin <pchelkin@xxxxxxxxx>:
> ksmbd_iov_pin_rsp_read() doesn't free the provided aux buffer if it
> fails. Seems to be the caller's responsibility to clear the buffer in
> error case.
>
> Found by Linux Verification Center (linuxtesting.org).
>
> Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Fedor Pchelkin <pchelkin@xxxxxxxxx>
Applied it to #ksmbd-for-next-next.
Thanks for your patch!