summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-04-17 15:48:29 +0800
committerGrant Likely <grant.likely@linaro.org>2014-05-23 08:46:30 +0900
commit947fdaad0627e277c5f3a2573203c4fab3db513b (patch)
tree6fa7dd2901226991fe0f4c34e52a448f036a79a6 /drivers/ata
parentd2d3d7cd81e90e1ffac1a6eed7b3edcbf11f4c97 (diff)
downloadlinux-947fdaad0627e277c5f3a2573203c4fab3db513b.tar.gz
linux-947fdaad0627e277c5f3a2573203c4fab3db513b.tar.bz2
linux-947fdaad0627e277c5f3a2573203c4fab3db513b.zip
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 <Li.Xiubo@freescale.com> [grant.likely: conflict with another change in same function] Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions