Skip to contentSkip to conversation

ath5k: add missing ieee80211_free_hw() on unload in AHB code

PATCH New Pavel Roskin 1 participant 1 message Jun 17, 2011 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath5k: add missing ieee80211_free_hw() on unload in AHB code

---
 drivers/net/wireless/ath/ath5k/ahb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath5k/ahb.c +1 -0
index ea99827..c38e9e8 100644
@@ -219,6 +219,7 @@ static int ath_ahb_remove(struct platform_device *pdev)
 
 	ath5k_deinit_softc(sc);
 	platform_set_drvdata(pdev, NULL);
+	ieee80211_free_hw(hw);
 
 	return 0;
 }