Commit 61224c31 authored by Ding Hui's avatar Ding Hui Committed by Yang Yingliang
Browse files

cifs: fix wrong release in sess_alloc_buffer() failed path



stable inclusion
from linux-4.19.207
commit 1c409595b46bc405e9d4761d449d9307e009fc6f

--------------------------------

[ Upstream commit d72c7419 ]

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: default avatarDing Hui <dinghui@sangfor.com.cn>
Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent deb41d0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment