Skip to content

Commit

Permalink
ath6kl: Release the memory allocated for the firmware
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Raja Mani authored and Kalle Valo committed Aug 9, 2011
1 parent 9aa6035 commit 1970357
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 1970357

Please sign in to comment.