diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-07-18 19:50:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-20 12:36:13 -0700 |
commit | 40999f11ce677ce3c5d0e8f5f76c40192a26b479 (patch) | |
tree | 5b5dac9106b60eb5d67e5f204a55ecaeb6db9b43 /drivers/ptp | |
parent | f91a0effcaa6a2eec647cdc53d0d16bff5144c10 (diff) | |
download | linux-40999f11ce677ce3c5d0e8f5f76c40192a26b479.tar.gz linux-40999f11ce677ce3c5d0e8f5f76c40192a26b479.tar.bz2 linux-40999f11ce677ce3c5d0e8f5f76c40192a26b479.zip |
tipc: make link capability update thread safe
The commit referred to below introduced an update of the link
capabilities field that is not safe. Given the recently added
feature to remove idle node and link items after 5 minutes, there
is a small risk that the update will happen at the very moment the
targeted link is being removed. To avoid this we have to perform
the update inside the node item's write lock protection.
Fixes: 9012de508956 ("tipc: add sequence number check for link STATE messages")
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions