diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-05-26 21:50:51 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-03 08:25:11 +0200 |
| commit | 98b0fb191c878a64cbaebfe231d96d57576acf8c (patch) | |
| tree | 013a3119a47b035f8252947639701f4ec234968d /include/linux/timerqueue.h | |
| parent | 4f117f5626287c0d0efa8fa99b82f264a26bc8f7 (diff) | |
batman-adv: bla: annotate lasttime access with READ/WRITE_ONCE
The lasttime field for claim, backbone_gw, and loopdetect tracks the
jiffies value of the most recent activity and is used to detect timeouts.
These accesses are not consistently protected by a lock, so
READ_ONCE/WRITE_ONCE must be used to prevent data races caused by compiler
optimizations.
Cc: stable@kernel.org
Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
