brcmfmac: fix potential NULL pointer dereference in brcmf_fws_flow_control_check()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 19 Apr 2013 02:14:31 +0000 (10:14 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:25 +0000 (15:20 -0400)
commit16a1f736708239a13b475a5b12e5928a834805bc
treef8fbf0e5139463a2deeffdeb30a3039009b29e9d
parent4fc4118cdb29ab946b8a586fc766ebb6ae1e1c90
brcmfmac: fix potential NULL pointer dereference in brcmf_fws_flow_control_check()

The dereference to 'ifp' in debug code should be moved below the NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c