]> git.baikalelectronics.ru Git - uboot.git/commit
fdtgrep: Deal with NULL data passed to check_type_include()
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:40 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:07 +0000 (08:38 -0400)
commite33817dd53ee0038e4ffef5356daedf0aab18e4b
treeeda6c61285b08acb6677c3cf0e2d92a5fe47de72
parent9cc08cbd829170bca5c684b172f98d7f74e44ae4
fdtgrep: Deal with NULL data passed to check_type_include()

Since the parameter can be NULL we must be careful not to dereference it
in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 163250)
Fixes: 1043d0a0 (fdt: Add fdtgrep tool)
tools/fdtgrep.c