mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
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>
This commit is contained in:
parent
9aa603578f
commit
197035737e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user