]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: fix null pointer access
authorAntonio Quartulli <antonio@open-mesh.com>
Wed, 19 Jun 2013 11:35:31 +0000 (13:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jun 2013 19:28:32 +0000 (15:28 -0400)
commit6804500a70d14b702451fb565f2b5f0ea4266bab
treeaa9580ae7b69616decfc7eb7406e93d048484734
parentd28dee9ed7d9276c4f5c998b47b73f0f0bb1d258
brcm80211: fix null pointer access

Do not unconditionally access the chan variable in
brcmf_cfg80211_mgmt_tx() as it may be NULL.
Use freq instead.

Introduced by df1d131841b5905b487b8a716a818d4eefe4cc84
("brcm80211: make mgmt_tx in brcmfmac accept a NULL channel")

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c