brcmfmac: Fix crash on cleanup.
authorHante Meuleman <meuleman@broadcom.com>
Tue, 30 Sep 2014 08:23:17 +0000 (10:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Sep 2014 17:17:47 +0000 (13:17 -0400)
commit58b2251e96d8230e81f65a0196afc914a17e1806
tree397cc6fed3ff0b2c044810420520ea3f09fb561a
parentf48556e1b6a60f1b394a6c4b0a7b8cacba3eb107
brcmfmac: Fix crash on cleanup.

When driver gets unloaded due to error situation there is a chance
a packet gets received while fws has already been cleaned up. This
will result in kernel crash. This patch adds a check to avoid this
crash.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@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/fwsignal.c