From 2537c171bc906fcc67a6854c69b41cb0eb2db947 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Thu, 19 Jun 2025 18:44:51 +0200 Subject: [PATCH] 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 --- tools/modprobe.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.2