diff options
author | Breno Leitao <[email protected]> | 2024-05-16 11:30:41 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2024-05-17 09:54:32 +0300 |
commit | 637c435f08ea7e77c53a2ad590b651d0de225e3b (patch) | |
tree | b1745428b54cad4c3180ab13b2f1c24721b6d1e0 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 1d60eabb82694e58543e2b6366dae3e7465892a5 (diff) |
wifi: ath11k: Fix error path in ath11k_pcic_ext_irq_config
If one of the dummy allocation fails in ath11k_pcic_ext_irq_config(),
the previous allocated devices might leak due to returning without
deallocating the devices.
Instead of returning on the error path, deallocate all the previously
allocated net_devices and then return.
Fixes: bca592ead825 ("wifi: ath11k: allocate dummy net_device dynamically")
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions