From: Raja Mani Date: Thu, 4 Aug 2011 13:56:30 +0000 (+0530) Subject: ath6kl: Release the memory allocated for the firmware X-Git-Tag: v3.2-rc1~129^2~422^2^2~19^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=197035737e96a517eed26e8f4bb941738249783e;p=~emulex%2Finfiniband.git ath6kl: Release the memory allocated for the firmware Nowhere the firmware memory is freed, free it during the device destroy process. Signed-off-by: Raja Mani Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index e8ec617a6cc..99ff2f94b6c 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c @@ -1294,5 +1294,10 @@ void ath6kl_destroy(struct net_device *dev, unsigned int unregister) wlan_node_table_cleanup(&ar->scan_table); + kfree(ar->fw_board); + kfree(ar->fw_otp); + kfree(ar->fw); + kfree(ar->fw_patch); + ath6kl_cfg80211_deinit(ar); }