1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless
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
..
admtek module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
ath wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
atmel module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
broadcom brcmfmac: properly check for bus register errors 2021-05-13 18:58:42 +02:00
cisco airo: work around stack usage warning 2021-04-17 21:02:28 +03:00
intel - Remove duplicate error message for the amlogic driver (Tang Bin) 2021-05-05 12:46:48 -07:00
intersil treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
marvell libertas: register sysfs groups properly 2021-05-13 18:32:32 +02:00
mediatek mt76: mt7921: reinit wpdma during drv_own if necessary 2021-04-21 20:55:56 +02:00
microchip wilc1000: Remove duplicate struct declaration 2021-04-18 09:33:09 +03:00
quantenna qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth 2021-04-22 17:40:12 +03:00
ralink of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
realtek net: rtlwifi: properly check for alloc_workqueue() failure 2021-05-13 17:30:26 +02:00
rsi rsi: Use resume_noirq for SDIO 2021-04-18 09:31:50 +03:00
st cw1200: Remove unused function pointer typedef wsm_* 2021-04-17 20:25:54 +03:00
ti wlcore: Fix buffer overrun by snprintf due to incorrect buffer size 2021-04-22 17:39:29 +03:00
zydas zd1201: Fix fall-through warnings for Clang 2020-12-08 10:06:59 +02:00
Kconfig wireless: remove CONFIG_WIRELESS_WDS 2020-11-10 09:39:08 +01:00
mac80211_hwsim.c wireless: fix spelling of A-MSDU in HE capabilities 2021-04-19 12:50:15 +02:00
mac80211_hwsim.h mac80211_hwsim: notify wmediumd of used MAC addresses 2020-04-24 11:45:47 +02:00
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
ray_cs.c ray_cs: Use fallthrough pseudo-keyword 2020-11-07 13:30:09 +02:00
ray_cs.h
rayctl.h ray_cs: Replace zero-length array with flexible-array member 2020-03-23 19:18:27 +02:00
rndis_wlan.c net: usb: switch to dev_get_tstats64 and remove usbnet_get_stats64 alias 2020-11-12 14:58:27 -08:00
virt_wifi.c virt_wifi: Return micros for BSS TSF values 2021-04-08 10:14:57 +02:00
wl3501.h wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-04-22 17:38:41 +03:00
wl3501_cs.c wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-04-22 17:38:41 +03:00