summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-29 23:36:43 +0200
committerSven Eckelmann <sven@narfation.org>2026-06-03 08:27:16 +0200
commit5e50d4b8ae3ea622122d3c6a38d7f6fe68dfddca (patch)
tree0eb1ebe51370f9526e322ac133af4fe84f3dab35 /include/linux
parent98b0fb191c878a64cbaebfe231d96d57576acf8c (diff)
batman-adv: prevent ELP transmission interval underflow
batadv_v_elp_start_timer() enqeues a delayed work. The time when it starts is randomly chosen between (elp_interval - BATADV_JITTER) and (elp_interval + BATADV_JITTER). The configured elp_interval must therefore be larger or equal to BATADV_JITTER to avoid that it causes an underflow of the unsigned integer. If this would happen, then a "fast" ELP interval would turn into a "day long" delay. At the same time, it must not be larger than the maximum value the variable can store. Cc: stable@kernel.org Fixes: a10800829040 ("batman-adv: Add elp_interval hardif genl configuration") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions