projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06991d1
)
mt76: mt7921: add mt7921_dma_cleanup in mt7921_unregister_device
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Tue, 13 Apr 2021 12:13:54 +0000
(14:13 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 21 Apr 2021 09:42:20 +0000
(11:42 +0200)
In order to avoid memory leaks, clean the dma engine unloading the
module
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7921/init.c
b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
index
5bb0a7b
..
94fe2ea
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7921/init.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7921/init.c
@@
-272,8
+272,9
@@
int mt7921_register_device(struct mt7921_dev *dev)
void mt7921_unregister_device(struct mt7921_dev *dev)
{
mt76_unregister_device(&dev->mt76);
- mt7921_mcu_exit(dev);
mt7921_tx_token_put(dev);
+ mt7921_dma_cleanup(dev);
+ mt7921_mcu_exit(dev);
tasklet_disable(&dev->irq_tasklet);
mt76_free_device(&dev->mt76);