brcmfmac: Fix double free on exception at module load.
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>
This commit is contained in:
parent
46d703a775
commit
5536f20a1c
@ -1083,6 +1083,8 @@ fail:
|
|||||||
brcmf_net_detach(ifp->ndev);
|
brcmf_net_detach(ifp->ndev);
|
||||||
if (p2p_ifp)
|
if (p2p_ifp)
|
||||||
brcmf_net_detach(p2p_ifp->ndev);
|
brcmf_net_detach(p2p_ifp->ndev);
|
||||||
|
drvr->iflist[0] = NULL;
|
||||||
|
drvr->iflist[1] = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user