diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-05-28 21:14:39 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-03 08:02:19 +0200 |
| commit | b2b68b32a715e0328662801576974aa37b942b00 (patch) | |
| tree | b344792370a7c3201304c7a15794bf83dced493f /include/linux/timerqueue_types.h | |
| parent | 5aa8651527ea0b610e7a09fb3b8204c1398b9525 (diff) | |
batman-adv: tp_meter: initialize dup_acks explicitly
When an ack with a sequence number equal to the last_acked is received, the
dup_acks counter is increased to decide whether fast retransmit should be
performed. Only when the sequence numbers are not equal, the dup_acks is
set to the initial value (0).
But if the initial packet would have the sequence number
BATADV_TP_FIRST_SEQ, dup_acks would not be initialized and atomic_inc would
operate on an undefined starting value. It is therefore required to have it
explicitly initialized during the start of the sender session.
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_types.h')
0 files changed, 0 insertions, 0 deletions
