]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix wrong release in sess_alloc_buffer() failed path
authorDing Hui <dinghui@sangfor.com.cn>
Tue, 17 Aug 2021 14:55:10 +0000 (22:55 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Aug 2021 20:42:18 +0000 (15:42 -0500)
commitd72c74197b70bc3c95152f351a568007bffa3e11
treebbf41fc84cefc3adeadcf0ad38d0693c78675209
parentf980d055a0f858d73d9467bb0b570721bbfcdfb8
cifs: fix wrong release in sess_alloc_buffer() failed path

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@sangfor.com.cn>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/sess.c