diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-02-14 16:50:34 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2008-02-14 08:02:41 -0600 |
commit | 089adb9964a222499eb204198b579c231c59c42f (patch) | |
tree | e9e4a322580c3175c258cac315bb44e2eac98a7f /tests/Makefile.tests | |
parent | fc9769ac2bae8a32d5d277007d22414c4516b02b (diff) | |
download | device-tree-compiler-089adb9964a222499eb204198b579c231c59c42f.tar.gz |
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>
Diffstat (limited to 'tests/Makefile.tests')
-rw-r--r-- | tests/Makefile.tests | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Makefile.tests b/tests/Makefile.tests index 0f4d342..15a5ebb 100644 --- a/tests/Makefile.tests +++ b/tests/Makefile.tests @@ -10,7 +10,8 @@ LIB_TESTS_L = get_mem_rsv \ move_and_save mangle-layout \ open_pack rw_tree1 set_name setprop del_property del_node \ string_escapes references path-references \ - dtbs_equal_ordered + dtbs_equal_ordered \ + add_subnode_with_nops LIB_TESTS = $(LIB_TESTS_L:%=$(TESTS_PREFIX)%) LIBTREE_TESTS_L = truncated_property |