diff options
author | Arend van Spriel <arend@broadcom.com> | 2012-06-21 15:49:13 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-22 14:44:05 -0400 |
commit | c49aa4aa2bc89e88672dc419a293d7b8c1f094d2 (patch) | |
tree | 1aefb4775413baa7f981e1d104d55c794ae724c3 /drivers/net/wireless/ath/ath9k/ar5008_phy.c | |
parent | 8dc01811da1119d6a5e595b5200b788c6603d3b2 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar5008_phy.c')
0 files changed, 0 insertions, 0 deletions