[PATCH v2] dm: core: fix no null pointer detection in ofnode_get_addr_size_index()

Simon Glass sjg at chromium.org
Wed Jul 7 19:37:05 CEST 2021


Hi Chenguanqiao,

On Mon, 5 Jul 2021 at 21:21, 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 | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

This is a v2 but does not have a change log.

Regards,
Simon


More information about the U-Boot mailing list