]> git.baikalelectronics.ru Git - uboot.git/commit
fdt: Check for NULL return from fdt_getprop in 'fdt set'
authorTom Rini <trini@konsulko.com>
Tue, 13 Jun 2017 11:10:35 +0000 (07:10 -0400)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commit0f0304eb0cb2cd24eb2adcd16628f2cf47b17650
treef155f75b8323132fa07b992cd3fc8ac89a87520b
parent49fe46d98059f3dac0eb1ca5065b8cabcaa9f6e1
fdt: Check for NULL return from fdt_getprop in 'fdt set'

While the previous pass through fixed one place where we knew that
fdt_getprop would be given a positive len, in the case of 'fdt set' we
do not, so check that we did no get NULL from fdt_getprop().

Cc: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 163249)
Fixes 4e5299b4dc57 ("fdt: Add a check to do_fdt() for coverity")
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fdt.c