]> git.baikalelectronics.ru Git - uboot.git/commit
fdt: Add a check to do_fdt() for coverity
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:41 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:08 +0000 (08:38 -0400)
commit4e5299b4dc5727536ecee556ac1fd25b498efb30
tree1d7101f068c8b0aac00cbdacf59464c00cbc9101
parente33817dd53ee0038e4ffef5356daedf0aab18e4b
fdt: Add a check to do_fdt() for coverity

We know that fdt_getprop() does not return NULL when len is > 0 but
coverity does not. Add an extra check to keep it happy.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 163249)
Fixes: bc80295b (fdt: Add get commands to fdt)
cmd/fdt.c