commit | ba2faddf1f14c2a7ecb0adecaebcc332c919cf05 | [log] [tgz] |
---|---|---|
author | Ding Hui <dinghui@sangfor.com.cn> | Tue Aug 17 22:55:10 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 18 13:40:32 2021 +0200 |
tree | 62698a0f22390026eabc1b28f16071959feebfdb | |
parent | 7c7d6c9cd879a4bb19b101735858a175e698219b [diff] |
cifs: fix wrong release in sess_alloc_buffer() failed path [ Upstream commit d72c74197b70bc3c95152f351a568007bffa3e11 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>