]> git.sur5r.net Git - u-boot/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)
commit96725153197f32e00a07d0fe1bfbab8662d94cb9
treeeda6c61285b08acb6677c3cf0e2d92a5fe47de72
parent66a1b30d14566676293ba4010a0d592adc61ce95
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