From 947fdaad0627e277c5f3a2573203c4fab3db513b Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 17 Apr 2014 15:48:29 +0800 Subject: [PATCH] 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: Xiubo Li [grant.likely: conflict with another change in same function] Signed-off-by: Grant Likely --- Reading git-format-patch failed