brcmfmac: fix NULL pointer access in brcmf_fweh_detach()
authorHante Meuleman <meuleman@broadcom.com>
Thu, 15 Nov 2012 02:46:13 +0000 (18:46 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Nov 2012 19:28:54 +0000 (14:28 -0500)
commitdf19e777e0587004bb926c73c7188e0d63f19372
tree7cdeb9c2f745525d014b4dc6ff9bc8b1efe565ed
parent0b63cb71f1e6b74a6f68a9c7b10d823fd9914d0a
brcmfmac: fix NULL pointer access in brcmf_fweh_detach()

brcmf_fweh_detach can be called while ifp is already NULL, due to
init error. Fix NULL pointer access by checking ifp.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/fweh.c