Latest commit 7d8ef6e Dec 9, 2016 @dgibson tests: Correct fdt handling of overlays without fixups and base trees…
… without symbols

The fdt_overlay_apply() function purports to support the edge cases where
an overlay has no fixups to be applied, or a base tree which has no
symbols (the latter can only work if the former is also true).  However it
gets it wrong in a couple of small ways:

  * In the no fixups case, it doesn't fail immediately, but will attempt
    fdt_for_each_property_offset() giving -FDT_ERR_NOTFOUND as the node
    offset, which will fail.  Instead it should succeed immediately, since
    there's nothing to do.
  * In the case of no symbols, it again doesn't fail immediately.  However
    if there is an actual fixup it will fail with an unexpected error,
    because -FDT_ERR_NOTFOUND is passed to fdt_getprop() when attempting to
    look up the symbols.  We should instead return -FDT_ERR_NOTFOUND
    directly.

Both of these errors lead to the code returning misleading error codes in
failing cases.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Permalink
..
Failed to load latest commit information.
Makefile.libfdt libfdt: Add overlay application function Oct 6, 2016
TODO dtc: Update TODO files Dec 19, 2007
fdt.c libfdt: Fix undefined behaviour in fdt_offset_ptr() Dec 17, 2015
fdt.h
fdt_addresses.c
fdt_empty_tree.c
fdt_overlay.c tests: Correct fdt handling of overlays without fixups and base trees… Dec 9, 2016
fdt_ro.c libfdt: fix fdt_stringlist_search() Oct 17, 2016
fdt_rw.c libfdt: simplify fdt_del_mem_rsv() Aug 22, 2016
fdt_strerror.c libfdt: add missing errors to fdt_strerror() Nov 3, 2016
fdt_sw.c libfdt: Add function to resize the buffer for a sequential write tree Oct 25, 2013
fdt_wip.c libfdt: Add fdt_setprop_inplace_namelen_partial Aug 1, 2016
libfdt.h
libfdt_env.h libfdt: Add overlay application function Oct 6, 2016
libfdt_internal.h libfdt: avoid shadowing "err" in FDT_CHECK_HEADER Jan 25, 2014
version.lds libfdt: Add fdt_overlay_apply to the exported symbols Oct 11, 2016