diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-12-07 04:50:01 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-08 20:07:37 +0300 |
commit | ed14e5903638f6eb868e3e2b4e610985e6a6c876 (patch) | |
tree | 46094f7780135153e26e673f10edaf48e71d1303 /tools/perf/scripts/python/sched-migration.py | |
parent | 803e84867de59a1e5d126666d25eb4860cfd2ebe (diff) | |
download | linux-ed14e5903638f6eb868e3e2b4e610985e6a6c876.tar.xz |
net: thunderbolt: fix memory leak in tbnet_open()
When tb_ring_alloc_rx() failed in tbnet_open(), ida that allocated in
tb_xdomain_alloc_out_hopid() is not released. Add
tb_xdomain_release_out_hopid() to the error path to release ida.
Fixes: 180b0689425c ("thunderbolt: Allow multiple DMA tunnels over a single XDomain connection")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20221207015001.1755826-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions