[PATCH] dm: core: fix no null pointer detection in ofnode_get_addr_size_index()
Simon Glass
sjg at chromium.org
Sun Jul 4 21:24:33 CEST 2021
Hi Chenguanqiao,
On Sat, 15 May 2021 at 09:20, Simon Glass <sjg at chromium.org> wrote:
>
> On Thu, 13 May 2021 at 01:38, chenguanqiao <chenguanqiao at kuaishou.com> wrote:
> >
> > From: Chen Guanqiao <chenguanqiao at kuaishou.com>
> >
> > Fixed a defect of a null pointer being discovered by Coverity Scan:
> > CID 331544: Null pointer dereferences (REVERSE_INULL)
> > Null-checking "size" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
> >
> > Signed-off-by: Chen Guanqiao <chenguanqiao at kuaishou.com>
> > ---
> > drivers/core/ofnode.c | 13 +++++++------
> > include/dm/ofnode.h | 2 +-
> > 2 files changed, 8 insertions(+), 7 deletions(-)
> >
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Unfortunately this does not apply to u-boot/next. Can you please
rebase it and resend?
Regards,
Simon
More information about the U-Boot
mailing list