brcmfmac: Only handle p2p_stop_device if vif is valid
authorHante Meuleman <meuleman@broadcom.com>
Fri, 18 Sep 2015 20:08:13 +0000 (22:08 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2015 07:55:58 +0000 (10:55 +0300)
commitd1bb34c128f59c30b75b96ef60f5f00cdbe9ca0e
treeb73d0662d1f9585ab3746e60991cb9b9acb0702c
parent9831bcb987df4aff6a1d85975f1dda4c654f298d
brcmfmac: Only handle p2p_stop_device if vif is valid

In some situations it is possible that vif has been removed while
cfg80211 invokes the p2p_stop_device handler. This will result in
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: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/p2p.c