From: Tobias Stoeckmann Date: Thu, 19 Jun 2025 16:44:51 +0000 (+0200) Subject: modprobe: return error on timeout X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2537c171bc906fcc67a6854c69b41cb0eb2db947;p=thirdparty%2Fkmod.git modprobe: return error on timeout If module cannot be removed in time, return with a failure, not success: Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/377 Signed-off-by: Lucas De Marchi --- diff --git a/tools/modprobe.c b/tools/modprobe.c index f97b9618..757723e8 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -407,6 +407,7 @@ static int rmmod_do_remove_module(struct kmod_module *mod) err = -EAGAIN; break; } + err = -EAGAIN; } else { break; }