Re: [PATCH] brcmfmac: check ndev pointer
t...@redhat.com wrote: > From: Tom Rix > > Clang static analysis reports this error > > brcmfmac/core.c:490:4: warning: Dereference of null pointer > (*ifp)->ndev->stats.rx_errors++; > ^~~ > > In this block of code > > if (ret || !(*ifp) || !(
[PATCH] brcmfmac: check ndev pointer
From: Tom Rix Clang static analysis reports this error brcmfmac/core.c:490:4: warning: Dereference of null pointer (*ifp)->ndev->stats.rx_errors++; ^~~ In this block of code if (ret || !(*ifp) || !(*ifp)->ndev) { if (ret != -E