Skip to content
Commit ec0b7e24 authored by Frank Rowand's avatar Frank Rowand Committed by Rob Herring
Browse files

of: add consistency check to of_node_release()



Add an additional consistency check to of_node_release(), which is
called when the reference count of a devicetree node is decremented
to zero.  The node's children should have been deleted before the
node is deleted so check that no children exist.

Signed-off-by: default avatarFrank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/r/20230213185702.395776-7-frowand.list@gmail.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 23522dd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment