[U-Boot] [PATCH] fdt: Check for NULL return from fdt_getprop in 'fdt set'

Simon Glass sjg at chromium.org
Sat Jun 17 03:42:09 UTC 2017


On 13 June 2017 at 05:10, Tom Rini <trini at konsulko.com> wrote:
> 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 at chromium.org>
> Reported-by: Coverity (CID: 163249)
> Fixes 72c98ed1ab48 ("fdt: Add a check to do_fdt() for coverity")
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  cmd/fdt.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list