brcmfmac: Fix double free on exception at module load.
authorHante Meuleman <meuleman@broadcom.com>
Wed, 25 Nov 2015 10:32:47 +0000 (11:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Nov 2015 12:46:51 +0000 (14:46 +0200)
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/broadcom/brcm80211/brcmfmac/core.c

index 90389320de1351859fb9bc91f6aa3c2c68f7a9fb..3a39192e3f1439d8a21151d682e76c2a1bda46c3 100644 (file)
@@ -1083,6 +1083,8 @@ fail:
                        brcmf_net_detach(ifp->ndev);
                if (p2p_ifp)
                        brcmf_net_detach(p2p_ifp->ndev);
+               drvr->iflist[0] = NULL;
+               drvr->iflist[1] = NULL;
                return ret;
        }
        return 0;