Re: [PATCH][next] dpaa2-mac: Fix potential null pointer dereference

2020-09-29 Thread Gustavo A. R. Silva
On Fri, Sep 25, 2020 at 05:15:54PM -0700, David Miller wrote: > From: "Gustavo A. R. Silva" > Date: Fri, 25 Sep 2020 12:03:23 -0500 > > > There is a null-check for _pcs_, but it is being dereferenced > > prior to this null-check. So, if _pcs_ can actually be null, > > then there is a potential

Re: [PATCH][next] dpaa2-mac: Fix potential null pointer dereference

2020-09-25 Thread David Miller
From: "Gustavo A. R. Silva" Date: Fri, 25 Sep 2020 12:03:23 -0500 > There is a null-check for _pcs_, but it is being dereferenced > prior to this null-check. So, if _pcs_ can actually be null, > then there is a potential null pointer dereference that should > be fixed by null-checking _pcs_

[PATCH][next] dpaa2-mac: Fix potential null pointer dereference

2020-09-25 Thread Gustavo A. R. Silva
There is a null-check for _pcs_, but it is being dereferenced prior to this null-check. So, if _pcs_ can actually be null, then there is a potential null pointer dereference that should be fixed by null-checking _pcs_ before being dereferenced. Addresses-Coverity-ID: 1497159 ("Dereference before