OpenCloudOS-Kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac
Winnie Chang 27a8aea130 brcmfmac: fix brcmf_wiphy_wowl_params() NULL pointer dereference
The kernel BUG happens when wowl is enabled from firmware. In
brcmf_wiphy_wowl_params(), cfg is a NULL pointer because it is
drvr->config returned from wiphy_to_cfg(), and drvr->config is not set
yet. To fix it, set drvr->config before brcmf_setup_wiphy() which
calls brcmf_wiphy_wowl_params().

Fixes: 856d5a011c ("brcmfmac: allocate struct brcmf_pub instance using wiphy_new()")
Signed-off-by: Winnie Chang <winnie.chang@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-08-09 18:06:20 +03:00
..
Makefile brcmfmac: only build fwsignal module for CONFIG_BRCMFMAC_PROTO_BCDC 2017-04-19 14:39:44 +03:00
bcdc.c brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
bcdc.h brcmfmac: remove reference to fwsignal data from struct brcmf_pub 2017-04-13 17:07:22 +03:00
bcmsdh.c brcmfmac: add support for sysfs initiated coredump 2018-05-23 18:51:48 +03:00
btcoex.c brcmfmac: allocate struct brcmf_pub instance using wiphy_new() 2018-03-27 12:04:22 +03:00
btcoex.h
bus.h brcmfmac: add support for sysfs initiated coredump 2018-05-23 18:51:48 +03:00
cfg80211.c brcmfmac: fix brcmf_wiphy_wowl_params() NULL pointer dereference 2018-08-09 18:06:20 +03:00
cfg80211.h brcmfmac: allocate struct brcmf_pub instance using wiphy_new() 2018-03-27 12:04:22 +03:00
chip.c brcmfmac: add support for BCM4366E chipset 2018-04-25 11:21:58 +03:00
chip.h brcmfmac: use brcmf_chip_name() to store name in revinfo 2018-03-27 12:04:21 +03:00
common.c brcmfmac: move ALLFFMAC variable in flowring module 2018-05-23 18:51:47 +03:00
common.h brcmfmac: move ALLFFMAC variable in flowring module 2018-05-23 18:51:47 +03:00
commonring.c
commonring.h
core.c brcmfmac: handle msgbuf packets marked with monitor mode flag 2018-07-04 18:05:59 +03:00
core.h brcmfmac: handle msgbuf packets marked with monitor mode flag 2018-07-04 18:05:59 +03:00
debug.c brcmfmac: validate user provided data for memdump before copying 2018-05-23 18:51:56 +03:00
debug.h brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
feature.c brcmfmac: specify some features per firmware version 2018-07-31 10:22:16 +03:00
feature.h brcmfmac: detect firmware support for radiotap monitor frames 2018-07-04 18:05:57 +03:00
firmware.c brcmfmac: constify firmware mapping tables 2018-04-30 13:43:15 +03:00
firmware.h brcmfmac: constify firmware mapping tables 2018-04-30 13:43:15 +03:00
flowring.c brcmfmac: move ALLFFMAC variable in flowring module 2018-05-23 18:51:47 +03:00
flowring.h
fweh.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2017-10-16 17:09:24 +03:00
fweh.h brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK 2017-06-30 09:38:22 +03:00
fwil.c brcmfmac: do not convert linux error to firmware error string 2018-03-27 12:04:20 +03:00
fwil.h brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK 2017-06-30 09:38:22 +03:00
fwil_types.h brcmfmac: update STA info struct to the v5 2018-07-04 18:08:06 +03:00
fwsignal.c brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
fwsignal.h brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
msgbuf.c brcmfmac: handle msgbuf packets marked with monitor mode flag 2018-07-04 18:05:59 +03:00
msgbuf.h brcmfmac: coarse support for PCIe shared structure rev7 2018-04-30 13:43:17 +03:00
of.c brcmfmac: make brcmf_of_probe more generic 2017-01-19 14:45:13 +02:00
of.h brcmfmac: make brcmf_of_probe more generic 2017-01-19 14:45:13 +02:00
p2p.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
p2p.h cfg80211: move add/change interface monitor flags into params 2017-04-13 13:41:38 +02:00
pcie.c brcmfmac: fix regression in parsing NVRAM for multiple devices 2018-07-25 10:30:36 +03:00
pcie.h
pno.c brcmfmac: add scheduled scan support for specified BSSIDs 2017-06-13 09:57:51 +03:00
pno.h brcmfmac: add support multi-scheduled scan 2017-06-13 09:57:49 +03:00
proto.c brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
proto.h brcmfmac: use wiphy debugfs dir entry 2018-03-27 12:04:23 +03:00
sdio.c brcmfmac: stop watchdog before detach and free everything 2018-06-24 19:58:27 +03:00
sdio.h brcmfmac: Remove array of functions 2018-01-11 19:34:46 +02:00
tracepoint.c
tracepoint.h
usb.c brcmfmac: constify firmware mapping tables 2018-04-30 13:43:15 +03:00
usb.h
vendor.c
vendor.h