diff options
author | Arend van Spriel <arend.vanspriel@broadcom.com> | 2019-07-11 11:05:06 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-07-24 14:51:21 +0300 |
commit | a84a60ccdd65278485fb495f468a5ab91a75c649 (patch) | |
tree | 5b5b31ea736aada9be77a03661d106cbabce0b52 /drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c | |
parent | fa9050927fa885410055ee03c948c2252693d296 (diff) | |
download | linux-stable-a84a60ccdd65278485fb495f468a5ab91a75c649.tar.gz linux-stable-a84a60ccdd65278485fb495f468a5ab91a75c649.tar.bz2 linux-stable-a84a60ccdd65278485fb495f468a5ab91a75c649.zip |
Revert "brcmfmac: fix NULL pointer derefence during USB disconnect"
This reverts commit 5cdb0ef6144f47440850553579aa923c20a63f23. Subsequent
changes make rework the driver code fixing the issue differently.
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c')
-rw-r--r-- | drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c index 322e913ca7aa..2c95a08a5871 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c @@ -479,18 +479,11 @@ fail: return -ENOMEM; } -void brcmf_proto_bcdc_detach_pre_delif(struct brcmf_pub *drvr) -{ - struct brcmf_bcdc *bcdc = drvr->proto->pd; - - brcmf_fws_detach_pre_delif(bcdc->fws); -} - -void brcmf_proto_bcdc_detach_post_delif(struct brcmf_pub *drvr) +void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) { struct brcmf_bcdc *bcdc = drvr->proto->pd; drvr->proto->pd = NULL; - brcmf_fws_detach_post_delif(bcdc->fws); + brcmf_fws_detach(bcdc->fws); kfree(bcdc); } |