diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-06-02 16:51:42 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-03 08:02:20 +0200 |
| commit | 15ccbf685222274f5add1387af58c2a41a95f81e (patch) | |
| tree | eea401c0ac2e052cc8c50343353d5c571eca8157 /include/linux/timerqueue.h | |
| parent | f54c85ed42a1b27a516cf2a4728f5a612b799e07 (diff) | |
batman-adv: tp_meter: add only finished tp_vars to lists
When the receiver variables (aka "session") are initialized, then they are
added to the list of sessions before the timer is set up. A RCU protected
reader could therefore find the entry and run mod_setup before
batadv_tp_init_recv() finished the timer initialization.
The same is true for batadv_tp_start(), which must first initialize the
finish_work and the test_length to avoid a similar problem.
Cc: stable@kernel.org
Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
