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 c2ff8cad ("brcm80211: make mgmt_tx in brcmfmac accept a NULL channel") Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NAntonio Quartulli <antonio@open-mesh.com> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
Showing
想要评论请 注册 或 登录