diff options
| author | Henrique Carvalho <henrique.carvalho@suse.com> | 2026-02-04 20:06:43 -0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-02-08 20:25:16 -0600 |
| commit | 77ffbcac4e569566d0092d5f22627dfc0896b553 (patch) | |
| tree | a8bccdc477bdbc4919d965000c04dd6c7ed6c525 /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | b38f99c1217ae04753340f0fdcd8f35bf56841dc (diff) | |
smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()
On kthread_run() failure in ksmbd_tcp_new_connection(), the transport is
freed via free_transport(), which does not decrement active_num_conn,
leaking this counter.
Replace free_transport() with ksmbd_tcp_disconnect().
Fixes: 0d0d4680db22e ("ksmbd: add max connections parameter")
Cc: stable@vger.kernel.org
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
