projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa6035
)
ath6kl: Release the memory allocated for the firmware
author
Raja Mani
<rmani@qca.qualcomm.com>
Thu, 4 Aug 2011 13:56:30 +0000
(19:26 +0530)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:24 +0000
(19:45 +0300)
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>
drivers/net/wireless/ath/ath6kl/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/init.c
b/drivers/net/wireless/ath/ath6kl/init.c
index e8ec617a6cc7991cef2755608d0cb79ac96c9492..99ff2f94b6ce3b70577d7922e5ead4d97dcd6099 100644
(file)
--- 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);
}