aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/sdio.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-01-21 04:52:49 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2012-01-24 07:12:26 -0500
commit0e7de662bcf33567cc957995c38dc10959cc22bf (patch)
tree2cc5640951ec7e67900d74b7ff03634be3414992 /drivers/net/wireless/ath/ath6kl/sdio.c
parent7a950ea81de6cbf96e721599bfacdb409908cd00 (diff)
ath6kl: Fix memory leak when unloading ath6kl_sdio
The patch "ath6kl: create core.c" removes wiphy_free() from ath6kl_cfg80211_cleanup() and misses to free wiphy in ath6kl_sdio_remove(). This patch fixes this regression. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/sdio.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/sdio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 7bb61077c406..d9f55914b893 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -1314,6 +1314,7 @@ static void ath6kl_sdio_remove(struct sdio_func *func)
1314 cancel_work_sync(&ar_sdio->wr_async_work); 1314 cancel_work_sync(&ar_sdio->wr_async_work);
1315 1315
1316 ath6kl_core_cleanup(ar_sdio->ar); 1316 ath6kl_core_cleanup(ar_sdio->ar);
1317 ath6kl_core_destroy(ar_sdio->ar);
1317 1318
1318 kfree(ar_sdio->dma_buffer); 1319 kfree(ar_sdio->dma_buffer);
1319 kfree(ar_sdio); 1320 kfree(ar_sdio);