[PATCH] cifs: fix wrong release in sess_alloc_buffer() failed path

Paulo Alcantara pc at cjr.nz
Wed Aug 18 00:30:17 UTC 2021


Ding Hui <dinghui at sangfor.com.cn> writes:

> smb_buf is allocated by small_smb_init_no_tc(), and buf type is
> CIFS_SMALL_BUFFER, so we should use cifs_small_buf_release() to
> release it in failed path.
>
> Signed-off-by: Ding Hui <dinghui at sangfor.com.cn>
> ---
>  fs/cifs/sess.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Paulo Alcantara (SUSE) <pc at cjr.nz>



More information about the samba-technical mailing list