mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
mt76: mt7615: fix memleak when mt7615_unregister_device()
[ Upstream commit8ab31da7b8] mt7615_tx_token_put() should get call before mt76_free_pending_txwi(). Fixes:a6275e9346("mt76: mt7615: reset token when mac_reset happens") Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9ed951f416
commit
4fa28c807d
|
|
@ -161,10 +161,9 @@ void mt7615_unregister_device(struct mt7615_dev *dev)
|
||||||
mt76_unregister_device(&dev->mt76);
|
mt76_unregister_device(&dev->mt76);
|
||||||
if (mcu_running)
|
if (mcu_running)
|
||||||
mt7615_mcu_exit(dev);
|
mt7615_mcu_exit(dev);
|
||||||
mt7615_dma_cleanup(dev);
|
|
||||||
|
|
||||||
mt7615_tx_token_put(dev);
|
mt7615_tx_token_put(dev);
|
||||||
|
mt7615_dma_cleanup(dev);
|
||||||
tasklet_disable(&dev->irq_tasklet);
|
tasklet_disable(&dev->irq_tasklet);
|
||||||
|
|
||||||
mt76_free_device(&dev->mt76);
|
mt76_free_device(&dev->mt76);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user