1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/wcn36xx
Bryan O'Donoghue ef48667557 wcn36xx: Move hal_buf allocation to devm_kmalloc in probe
Right now wcn->hal_buf is allocated in wcn36xx_start(). This is a problem
since we should have setup all of the buffers we required by the time
ieee80211_register_hw() is called.

struct ieee80211_ops callbacks may run prior to mac_start() and therefore
wcn->hal_buf must be initialized.

This is easily remediated by moving the allocation to probe() taking the
opportunity to tidy up freeing memory by using devm_kmalloc().

Fixes: 8e84c25821 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210605173347.2266003-1-bryan.odonoghue@linaro.org
2021-06-14 18:27:07 +03:00
..
debug.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
debug.h wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware 2013-10-10 13:43:35 -04:00
dxe.c wcn36xx: Fix inconsistent indenting 2021-06-14 18:20:21 +03:00
dxe.h wcn36xx: Remove useless skb spinlock 2018-04-10 17:39:50 +03:00
hal.h wcn36xx: Add GTK offload info to WoWLAN resume 2021-06-14 18:18:15 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
pmc.c wcn36xx: Advertise beacon filtering support in bmps 2020-10-01 22:34:04 +03:00
pmc.h wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware 2013-10-10 13:43:35 -04:00
smd.c wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
smd.h wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
testmode.c netlink: make validation more configurable for future strictness 2019-04-27 17:07:21 -04:00
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
testmode_i.h wcn36xx: Add support for Factory Test Mode (FTM) 2018-05-25 13:17:28 +03:00
txrx.c wcn36xx: Specify ieee80211_rx_status.nss 2020-09-02 11:48:26 +03:00
txrx.h wcn36xx: let device generate qos seq numbers 2015-01-23 19:11:58 +02:00
wcn36xx.h wcn36xx: Add set_rekey_data callback 2021-06-14 18:18:14 +03:00