Return-path: Received: from wolverine01.qualcomm.com ([199.106.114.254]:37910 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754605Ab2AUJxI (ORCPT ); Sat, 21 Jan 2012 04:53:08 -0500 From: Vasanthakumar Thiagarajan To: CC: , Subject: [PATCH V2 2/6] ath6kl: Fix memory leak when unloading ath6kl_sdio Date: Sat, 21 Jan 2012 15:22:49 +0530 Message-ID: <1327139573-7435-2-git-send-email-vthiagar@qca.qualcomm.com> (sfid-20120121_105453_914300_9EA5D481) In-Reply-To: <1327139573-7435-1-git-send-email-vthiagar@qca.qualcomm.com> References: <1327139573-7435-1-git-send-email-vthiagar@qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- drivers/net/wireless/ath/ath6kl/sdio.c | 1 + 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 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); -- 1.7.0.4