linux/drivers/net/wireless/broadcom/brcm80211
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
..
brcmfmac brcmfmac: fix brcmf_wiphy_wowl_params() NULL pointer dereference 2018-08-09 18:06:20 +03:00
brcmsmac brcmsmac: make function wlc_phy_workarounds_nphy_rev1 static 2018-06-27 18:57:23 +03:00
brcmutil brcmutil: add field storing control channel to the struct brcmu_chan 2016-06-14 17:27:42 +03:00
include brcmfmac: add support for BCM4366E chipset 2018-04-25 11:21:58 +03:00
Kconfig net: Remove depends on HAS_DMA in case of platform dependency 2018-06-23 10:44:30 +09:00
Makefile