]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: fix no null pointer detection in ofnode_get_addr_size_index()
authorChen Guanqiao <chenguanqiao@kuaishou.com>
Mon, 12 Jul 2021 07:40:20 +0000 (15:40 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:35 +0000 (10:27 -0600)
commit1b098b3e655451572054ce933a87231ee16f7133
treec82af4506ebb2e5144438b0d5ef10411257caece
parentfd25ca3275946476d5c3fa32e3e7e3087fa5c572
dm: core: fix no null pointer detection in ofnode_get_addr_size_index()

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@kuaishou.com>
drivers/core/ofnode.c