Files
Winnie Chang 151751ec48 brcmfmac: fix brcmf_wiphy_wowl_params() NULL pointer dereference
[ Upstream commit 27a8aea130 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-15 09:46:52 +02:00
..
…
…
…
…
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
…
…
2018-06-12 16:19:22 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-07-16 13:38:29 -07:00
…
…