OSDN Git Service

of: overlay: do not duplicate properties from overlay for new nodes
authorFrank Rowand <frank.rowand@sony.com>
Fri, 5 Oct 2018 03:29:01 +0000 (20:29 -0700)
committerFrank Rowand <frank.rowand@sony.com>
Fri, 9 Nov 2018 06:11:15 +0000 (22:11 -0800)
commit8814dc46bd9e347d4de55ec5bf8f16ea54470499
tree8114d3ea3907be24f3eb196bcbf977b1bee2b4cc
parent6b4955ba7bc05e40c8c41071cc121bc26ca65277
of: overlay: do not duplicate properties from overlay for new nodes

When allocating a new node, add_changeset_node() was duplicating the
properties from the respective node in the overlay instead of
allocating a node with no properties.

When this patch is applied the errors reported by the devictree
unittest from patch "of: overlay: add tests to validate kfrees from
overlay removal" will no longer occur.  These error messages are of
the form:

   "OF: ERROR: ..."

and the unittest results will change from:

   ### dt-test ### end of unittest - 203 passed, 7 failed

to

   ### dt-test ### end of unittest - 210 passed, 0 failed

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
drivers/of/overlay.c