dtc/libfdt
David Gibson 089adb9964 libfdt: Fix NOP handling bug in fdt_add_subnode_namelen()
fdt_add_subnode_namelen() has a bug if asked to add a subnode to a
node which has NOP tags interspersed with its properties.  In this
case fdt_add_subnode_namelen() will put the new subnode before the
first NOP tag, even if there are properties after it, which will
result in an invalid blob.

This patch fixes the bug, and adds a testcase for it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2008-02-14 08:02:41 -06:00
..
Makefile.libfdt dtc: Refactor Makefiles 2007-10-15 08:28:07 -05:00
TODO dtc: Update TODO files 2007-12-19 08:20:26 -06:00
fdt.c libfdt: Add and use a node iteration helper function. 2008-02-12 09:11:40 -06:00
fdt.h Fix whitespace in libfdt/fdt.h 2007-11-28 09:44:27 -06:00
fdt_ro.c libfdt: Add and use a node iteration helper function. 2008-02-12 09:11:40 -06:00
fdt_rw.c libfdt: Fix NOP handling bug in fdt_add_subnode_namelen() 2008-02-14 08:02:41 -06:00
fdt_strerror.c Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
fdt_sw.c libfdt: Remove un-const-safe fdt_set_header macro 2007-10-25 09:49:18 -05:00
fdt_wip.c libfdt: Rename and publish _fdt_next_tag() 2007-10-24 09:56:27 -05:00
libfdt.h libfdt: Add and use a node iteration helper function. 2008-02-12 09:11:40 -06:00
libfdt_env.h Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
libfdt_internal.h libfdt: Rename and publish _fdt_check_header() 2007-10-24 07:58:13 -05:00