diff options
author | Raja Mani <rmani@qca.qualcomm.com> | 2011-08-04 09:56:30 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:24 -0400 |
commit | 197035737e96a517eed26e8f4bb941738249783e (patch) | |
tree | 222be6b6610ad20908901039a435a8bf60db9a88 /drivers/net/wireless | |
parent | 9aa603578f401d94a9d4ddd8af2917f224756b3b (diff) |
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 <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index e8ec617a6cc7..99ff2f94b6ce 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) | |||
1294 | 1294 | ||
1295 | wlan_node_table_cleanup(&ar->scan_table); | 1295 | wlan_node_table_cleanup(&ar->scan_table); |
1296 | 1296 | ||
1297 | kfree(ar->fw_board); | ||
1298 | kfree(ar->fw_otp); | ||
1299 | kfree(ar->fw); | ||
1300 | kfree(ar->fw_patch); | ||
1301 | |||
1297 | ath6kl_cfg80211_deinit(ar); | 1302 | ath6kl_cfg80211_deinit(ar); |
1298 | } | 1303 | } |