diff options
| author | Abdun Nihaal <abdun.nihaal@gmail.com> | 2025-07-09 20:25:30 +0530 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2025-09-15 09:47:38 +0200 |
| commit | 42754b7de2b1a2cf116c5e3f1e8e78392f4ed700 (patch) | |
| tree | 279f83c0153e1af8d070e55cf90cc0749109d871 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 74e756b9e28af3ee94a7ea480bb39694be5fbd96 (diff) | |
wifi: mt76: fix potential memory leak in mt76_wmac_probe()
In mt76_wmac_probe(), when the mt76_alloc_device() call succeeds, memory
is allocated for both struct ieee80211_hw and a workqueue. However, on
the error path, the workqueue is not freed. Fix that by calling
mt76_free_device() on the error path.
Fixes: c8846e101502 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://patch.msgid.link/20250709145532.41246-1-abdun.nihaal@gmail.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
