Re: [PATCH][next] soc: fsl: dpio: fix dereference of pointer p before null check

2020-02-24 Thread Dan Carpenter
On Fri, Feb 21, 2020 at 11:11:43PM +, Colin King wrote: > --- > drivers/soc/fsl/dpio/qbman-portal.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/fsl/dpio/qbman-portal.c > b/drivers/soc/fsl/dpio/qbman-portal.c > index 740ee0d19582..d1f49caa5b13 100

RE: [PATCH][next] soc: fsl: dpio: fix dereference of pointer p before null check

2020-02-21 Thread Leo Li
org > Subject: [PATCH][next] soc: fsl: dpio: fix dereference of pointer p before > null > check > > From: Colin Ian King > > Pointer p is currently being dereferenced before it is null checked on a > memory allocation failure check. Fix this by checking if p is null befor

[PATCH][next] soc: fsl: dpio: fix dereference of pointer p before null check

2020-02-21 Thread Colin King
From: Colin Ian King Pointer p is currently being dereferenced before it is null checked on a memory allocation failure check. Fix this by checking if p is null before dereferencing it. Addresses-Coverity: ("Dereference before null check") Fixes: 3b2abda7d28c ("soc: fsl: dpio: Replace QMAN array