summaryrefslogtreecommitdiff
path: root/kernel/livepatch/patch.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-16 12:33:41 +0200
committerSven Eckelmann <sven@narfation.org>2026-05-19 08:24:30 +0200
commitff24f2ecfd94c07a2b89bac497433e3b23271cac (patch)
tree41451548199dc7de6555f83024fe09d9fb8f619e /kernel/livepatch/patch.c
parent71dce47f0758537fff78fddb5fb0d4632d29b29f (diff)
batman-adv: tp_meter: avoid role confusion in tp_list
Session lookups in tp_list matched only on destination address (and optionally session ID), leaving role validation to the caller. If two sessions with the same other_end coexisted (one as sender, one as receiver) a lookup could silently return the wrong one, causing the caller's role to bail out early, potentially skipping necessary cleanup. Move the role check into the lookup functions themselves so the correct entry is always returned, or none at all. Since batadv_tp_start() legitimately needs to detect any active session to a destination regardless of role, introduce a dedicated helper for that case rather than bending the existing lookup semantics. Cc: stable@kernel.org Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'kernel/livepatch/patch.c')
0 files changed, 0 insertions, 0 deletions