diff options
| author | Abdurrahman Hussain <abdurrahman@nexthop.ai> | 2026-08-31 18:29:22 -0700 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2026-09-17 16:35:32 -0500 |
| commit | 814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c (patch) | |
| tree | dc714410465f7a7575e40f105312af0b79e118d8 /tools/lib/python/kdoc/python_version.py | |
| parent | 5bb01c657ff9fc807c2c592ca18af34c4fc3bc6f (diff) | |
| download | linux-next-814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c.tar.gz linux-next-814f2da6995772c07a7c9c2cc6028b6e3f3ecc9c.zip | |
of/overlay: put property on deadprops only after changeset add succeeds
add_changeset_property() links a new property of a not-yet-live
target node into the node's deadprops list before handing it to
of_changeset_add_property(). If that fails, the error path frees the
property but leaves the freed pointer linked in deadprops, and
of_node_release() frees it a second time when the aborted overlay's
node is released.
Record the changeset entry first and link the property into deadprops
only on success. of_changeset_add_property() never looks at the
node's property lists, so the order of the two steps is otherwise
immaterial, and the error path frees a property that nothing
references.
Fixes: f96278810150 ("of: overlay: set node fields from properties when add new overlay node")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-fable-5 [Claude Code]
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
Link: https://patch.msgid.link/20260831-nh-of-alias-overlay-v7-4-02754604805a@nexthop.ai
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
