]> 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)
commitff50161b0b03a82fdf41155b0f84c67ff8a4b0c7
treec1021c251252faf1fc9dbea35baca06d5d36780b
parentbe2ad2a6974f51c63ad54bf9ff639ffe2a6772bc
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