diff options
author | Zhengchao Shao <[email protected]> | 2022-12-07 09:50:01 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-12-08 09:07:37 -0800 |
commit | ed14e5903638f6eb868e3e2b4e610985e6a6c876 (patch) | |
tree | 46094f7780135153e26e673f10edaf48e71d1303 /tools/perf/scripts/python/netdev-times.py | |
parent | 803e84867de59a1e5d126666d25eb4860cfd2ebe (diff) |
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 <[email protected]>
Acked-by: Mika Westerberg <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions