wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 1 Jan 2023 11:50:05 +0000 (12:50 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2023 13:47:16 +0000 (14:47 +0100)
commit3f7dda36e0b6dfa2cd26191f754ba061ab8191f2
tree6f2e38df073a451f7f3291fd46d5d6f627f7f8bb
parent1b88b47e898edef0e56e3a2f4e49f052a136153d
wifi: mt76: dma: fix memory leak running mt76_dma_tx_cleanup

Fix device unregister memory leak and alway cleanup all configured
rx queues in mt76_dma_tx_cleanup routine.

Fixes: 52546e27787e ("wifi: mt76: add WED RX support to dma queue alloc")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c