Skip to content
Commit 947fdaad authored by Xiubo Li's avatar Xiubo Li Committed by Grant Likely
Browse files

of: fix race between search and remove in of_update_property()



The of_update_property() is intented to update a property in a node
and if the property does not exist, will add it.

The second search of the property is possibly won't be found, that
maybe removed by other thread just before the second search begain.

Using the __of_find_property() and __of_add_property() instead and
move them into lock operations.

Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
[grant.likely: conflict with another change in same function]
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent d2d3d7cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment