summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-09-12 14:20:08 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-09-13 15:25:24 -0300
commite75c96157d45e498970158c8f7373d90102e33b9 (patch)
tree85c8e2e88ce9b9991b7a57558ca31614bdd157b0 /tools/perf/scripts/python/bin/stackcollapse-record
parent5f270f091256da1338c3631083e15d7f83cc05e1 (diff)
downloadlinux-next-e75c96157d45e498970158c8f7373d90102e33b9.tar.gz
linux-next-e75c96157d45e498970158c8f7373d90102e33b9.zip
smb: client: fix smbd_connection leak on cifs_get_tcp_session() error
When an RDMA connection is successfully established via smbd_get_connection() but cifs_get_tcp_session() later fails (e.g. kthread_create() returns an error), the error path frees tcp_ses without first destroying the smbd_connection. Fix this by calling smbd_destroy() in the out_err cleanup path before kfree(tcp_ses). smbd_destroy() safely handles the case where smbd_conn is NULL, so it can be called unconditionally. Closes: https://sashiko.dev/#/patchset/20260912165503.521597-1-pc%40manguebit.org Fixes: 2f8946464b11 ("CIFS: SMBD: Upper layer connects to SMBDirect session") Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Paulo Alcantara <pc@manguebit.org> Cc: Tom Talpey <tom@talpey.com> Cc: Stefan Metzmacher <metze@samba.org> Cc: Shyam Prasad N <sprasad@microsoft.com> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Bharath SM <bharathsm@microsoft.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions