aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
diff options
context:
space:
mode:
authorWinnie Chang <winnie.chang@cypress.com>2018-08-07 21:19:41 -0500
committerKalle Valo <kvalo@codeaurora.org>2018-08-09 18:06:20 +0300
commit27a8aea13053700ad2a08189024df7e341d1ee51 (patch)
treee03235af3457eaae1e8ac777e7b88ba3e620963c /drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
parentMerge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git (diff)
downloadlinux-dev-27a8aea13053700ad2a08189024df7e341d1ee51.tar.xz
linux-dev-27a8aea13053700ad2a08189024df7e341d1ee51.zip
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: 856d5a011c86 ("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>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c')
0 files changed, 0 insertions, 0 deletions