]> git.ipfire.org Git - thirdparty/kmod.git/commit
util: fix endless loop in get_backoff_delta_msec
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 29 Jun 2025 11:13:34 +0000 (13:13 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Jul 2025 15:20:33 +0000 (10:20 -0500)
commitf14f2603820e46b1946d8f96eee10c99690aea82
tree0f8dfdfc3df8b4989d6d6e19a0712943ca895087
parentec0f261ac38f2f6693096bad23597dc705cff63c
util: fix endless loop in get_backoff_delta_msec

If current time t is already past tend, the while loop in
get_backoff_delta_msec never ends.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/377
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/util.c