From: Vasanthakumar Thiagarajan Date: Sat, 21 Jan 2012 09:52:49 +0000 (+0530) Subject: ath6kl: Fix memory leak when unloading ath6kl_sdio X-Git-Tag: v3.12-rc1~2707^2~57^2~287^2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e7de662bcf33567cc957995c38dc10959cc22bf;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index 7bb6107..d9f5591 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) cancel_work_sync(&ar_sdio->wr_async_work); ath6kl_core_cleanup(ar_sdio->ar); + ath6kl_core_destroy(ar_sdio->ar); kfree(ar_sdio->dma_buffer); kfree(ar_sdio);