brcmfmac: Check null pointer on brcmf_dev_reset.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 8 Feb 2013 11:06:32 +0000 (12:06 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:36 +0000 (14:51 -0500)
commit643ecaab355c3879215cb34c10ae88d729e408be
treeb51f3fb0ad1f993cae5f404a40901660114ff2b0
parent2880b86859967af710c72f7d34fb421a86a71e22
brcmfmac: Check null pointer on brcmf_dev_reset.

When unloading it is possible that drvr is not null, but iflist[0]
is. So check iflist[0] pointer before using it.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c