android_kernel_oneplus_msm8998/drivers/net/wireless/brcm80211/brcmsmac
Arend van Spriel c49aa4aa2b brcmsmac: fix NULL pointer crash in brcms_c_regd_init()
In the function brcms_c_regd_init() the channels are validated
against the device capabilities. This is done for both 2.4G and
5G band, but there are devices that are 2.4G only, ie. BCM4313.
For that device this leads to a NULL dereference. This patch adds
a check in brcms_c_regd_init() to fix this.

Issue introduced in wireless-next tree by following commit:
cf03c5d brcm80211: smac: inform mac80211 of the X2 regulatory domain

Cc: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-06-22 14:44:05 -04:00
..
phy brcm80211: remove an unneeded NULL check 2012-06-05 15:23:20 -04:00
aiutils.c brcm80211: brcmsmac: fixed checkpatch and sparse warnings 2012-06-06 15:20:23 -04:00
aiutils.h brcm80211: brcmsmac: fixed checkpatch and sparse warnings 2012-06-06 15:20:23 -04:00
ampdu.c brcmsmac: fix smatch warning found in ampdu.c 2012-06-13 14:35:49 -04:00
ampdu.h
antsel.c brcmsmac: use sprom from bcma 2012-05-16 12:45:23 -04:00
antsel.h
brcms_trace_events.c
brcms_trace_events.h
channel.c brcmsmac: fix NULL pointer crash in brcms_c_regd_init() 2012-06-22 14:44:05 -04:00
channel.h brcm80211: smac: use current regulatory domain when checking whether OFDM is allowed 2012-06-20 15:14:40 -04:00
d11.h wireless: Remove unnecessary ; from while (0) macros 2012-04-11 16:23:56 -04:00
dma.c
dma.h
mac80211_if.c brcm80211: smac: inform mac80211 of the X2 regulatory domain 2012-06-20 15:14:33 -04:00
mac80211_if.h
main.c brcm80211: smac: use current regulatory domain when checking whether OFDM is allowed 2012-06-20 15:14:40 -04:00
main.h
Makefile brcmsmac: remove nicpci.c 2012-05-16 12:45:25 -04:00
phy_shim.c brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
phy_shim.h brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
pmu.c
pmu.h
pub.h brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
rate.c
rate.h
scb.h
stf.c brcmsmac: use sprom from bcma 2012-05-16 12:45:23 -04:00
stf.h
types.h
ucode_loader.c
ucode_loader.h