]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix smbdirect_recv_io leak in smbd_negotiate() error path
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Sep 2025 01:06:46 +0000 (03:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 08:58:54 +0000 (10:58 +0200)
commit3d7c075c878ac844e33c43e506c2fa27ac7e9689
treeea8b9483cb26b5fdf97363f03e8a036376c164a2
parent6241b9e2809b12da9130894cf5beddf088dc1b8a
smb: client: fix smbdirect_recv_io leak in smbd_negotiate() error path

[ Upstream commit daac51c7032036a0ca5f1aa419ad1b0471d1c6e0 ]

During tests of another unrelated patch I was able to trigger this
error: Objects remaining on __kmem_cache_shutdown()

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Fixes: f198186aa9bb ("CIFS: SMBD: Establish SMB Direct connection")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/smbdirect.c