]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
modprobe: return error on timeout
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 19 Jun 2025 16:44:51 +0000 (18:44 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Jul 2025 15:20:33 +0000 (10:20 -0500)
If module cannot be removed in time, return with a failure, not success:

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>
tools/modprobe.c

index f97b9618f511e1e72b87f35c06f875e5d2694e16..757723e8519c7ddc7ceb7bb6a6e2f5daa84cc8fb 100644 (file)
@@ -407,6 +407,7 @@ static int rmmod_do_remove_module(struct kmod_module *mod)
                                err = -EAGAIN;
                                break;
                        }
+                       err = -EAGAIN;
                } else {
                        break;
                }