Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23d412a2 authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville
Browse files

brcmfmac: bail out of brcmf_txflowblock_if() for non-netdev interface



To avoid ending up in a NULL-pointer access, the function
brcmf_txflowblock_if() should only be called for interfaces
that have a netdev associated with it.

Reviewed-by: default avatarHante Meuleman <meuleman@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 28a905b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,7 @@ void brcmf_txflowblock_if(struct brcmf_if *ifp,
{
{
	unsigned long flags;
	unsigned long flags;


	if (!ifp)
	if (!ifp || !ifp->ndev)
		return;
		return;


	brcmf_dbg(TRACE, "enter: idx=%d stop=0x%X reason=%d state=%d\n",
	brcmf_dbg(TRACE, "enter: idx=%d stop=0x%X reason=%d state=%d\n",