summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-13 23:38:54 +0200
committerSven Eckelmann <sven@narfation.org>2026-05-19 08:24:23 +0200
commit71dce47f0758537fff78fddb5fb0d4632d29b29f (patch)
treede27cfdbf2e3f6dd14f472c15ca0ccdacd95b9ef /scripts/checkstack.pl
parentf50487e3566358b2b982b7801945e858c78ad9ab (diff)
batman-adv: tp_meter: fix race condition in send error reporting
batadv_tp_sender_shutdown() previously used two separate variables to track session state: sending (an atomic flag indicating whether the session was active) and reason (a plain enum storing the stop reason). This introduced a race window between the two writes: after sending was cleared to 0, batadv_tp_send() could observe the stopped state and call batadv_tp_sender_end() before reason was written, causing the wrong stop reason to be reported to the caller. Fix this by consolidating both variables into a single atomic send_result, which holds 0 while the session is running and the stop reason once it ends. Cc: stable@kernel.org Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions