]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay: expand check of whether overlay changeset can be removed
authorFrank Rowand <frank.rowand@sony.com>
Tue, 17 Oct 2017 23:36:27 +0000 (16:36 -0700)
committerRob Herring <robh@kernel.org>
Wed, 18 Oct 2017 01:47:17 +0000 (20:47 -0500)
commitc2ae9dffc49f9936b45c063514230d42c92648af
treec1021c251252faf1fc9dbea35baca06d5d36780b
parent9eddf70f4b68a8195855c154693c2c9e5d25db81
of: overlay: expand check of whether overlay changeset can be removed

The test of whether it is safe to remove an overlay changeset
looked at whether any node in the overlay changeset was in a
subtree rooted at any more recently applied overlay changeset
node.

The test failed to determine whether any node in the overlay
changeset was the root of a subtree that contained a more
recently applied overlay changeset node.  Add this additional
check to the test.

The test is still lacking any check for any phandle dependencies.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/overlay.c