[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87fsv7h9wm.fsf@cjr.nz>
Date: Tue, 17 Aug 2021 21:30:17 -0300
From: Paulo Alcantara <pc@....nz>
To: Ding Hui <dinghui@...gfor.com.cn>, sfrench@...ba.org
Cc: linux-cifs@...r.kernel.org, samba-technical@...ts.samba.org,
linux-kernel@...r.kernel.org, Ding Hui <dinghui@...gfor.com.cn>
Subject: Re: [PATCH] cifs: fix wrong release in sess_alloc_buffer() failed path
Ding Hui <dinghui@...gfor.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@...gfor.com.cn>
> ---
> fs/cifs/sess.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Paulo Alcantara (SUSE) <pc@....nz>
Powered by blists - more mailing lists