Commit 02ed594
of: fix 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 <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Signed-off-by: Grant Likely <[email protected]>1 parent 62664f6 commit 02ed594
1 file changed
+14
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
| 1600 | + | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
| |||
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | 1609 | | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
1626 | 1621 | | |
1627 | 1622 | | |
1628 | 1623 | | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
1632 | 1624 | | |
1633 | 1625 | | |
1634 | | - | |
| 1626 | + | |
1635 | 1627 | | |
1636 | 1628 | | |
1637 | 1629 | | |
1638 | | - | |
| 1630 | + | |
1639 | 1631 | | |
1640 | 1632 | | |
1641 | 1633 | | |
| |||
0 commit comments