]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thunderbolt: Release request if tb_cfg_request() fails in __tb_xdomain_response()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 19 Nov 2025 11:15:58 +0000 (13:15 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 5 May 2026 11:53:46 +0000 (13:53 +0200)
commit4c63f29872cb444b33665348bbd2f45cab06afcd
tree641b30ebb0be2caf2e11a24fb7ce5dc4a834e242
parent138ec65b2c761f065b19d115aed2b8246fc272f5
thunderbolt: Release request if tb_cfg_request() fails in __tb_xdomain_response()

If tb_cfg_request() fails setting up the request (for example the
control channel is shut down already) it returns an error without
calling the callback. To avoid leaking that memory, call
tb_cfg_request_put() if tb_cfg_request() fails.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/xdomain.c