From 310d420178c86e253a172413da30ecf479b64251 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Mar 2016 22:10:28 +0100 Subject: [PATCH] mt76x2: fix txwi leak on cleanup Signed-off-by: Felix Fietkau --- mt76x2_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt76x2_pci.c b/mt76x2_pci.c index 97bd5345..f6d3e624 100644 --- a/mt76x2_pci.c +++ b/mt76x2_pci.c @@ -85,7 +85,7 @@ mt76pci_remove(struct pci_dev *pdev) struct mt76_dev *mdev = pci_get_drvdata(pdev); struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); - ieee80211_unregister_hw(mdev->hw); + mt76_unregister_device(mdev); mt76x2_cleanup(dev); ieee80211_free_hw(mdev->hw); }