Re: [PATCH] brcmfmac: check ndev pointer

2020-08-18 Thread Kalle Valo
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

2020-08-02 Thread trix
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