]> Git Repo - linux.git/commit - drivers/of/dynamic.c
of: dynamic: Fix race in getting old property when updating property
authorRob Herring <[email protected]>
Fri, 18 Aug 2023 20:40:59 +0000 (15:40 -0500)
committerRob Herring <[email protected]>
Mon, 21 Aug 2023 22:09:57 +0000 (17:09 -0500)
commit420f0de965a80b7060d23d2c23cddaed4e4ad2eb
tree65b458154bff425907f822c59c39a35a4ca822ac
parent27a02f265e25a6d6136d07d0187fd02fe1691fd7
of: dynamic: Fix race in getting old property when updating property

__of_update_property() returns the existing property if there is one, but
that value is never added to the changeset. Updates work because the
existing property was also retrieved before in of_changeset_action(),
but that is racy as of_changeset_action() doesn't hold any locks. The
property could be changed before the changeset is applied.

Reviewed-by: Geert Uytterhoeven <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
drivers/of/dynamic.c
This page took 0.057818 seconds and 4 git commands to generate.