From 0356d78bc2f55394ba9bfcb83a2e05d3a5070799 Mon Sep 17 00:00:00 2001 From: Vineeth Vijayan Date: Tue, 26 Aug 2025 12:34:00 +0200 Subject: [PATCH] zdev: Allow dynamic control of module load module_load_suppress() currently ignores the state parameter. Modify it to respect the state parameter, so that the module load suppress can be both enabled or disabled. Signed-off-by: Vineeth Vijayan Reviewed-by: Peter Oberparleiter Signed-off-by: Steffen Eiden --- zdev/src/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zdev/src/module.c b/zdev/src/module.c index a8e1bbb7..cbd5c639 100644 --- a/zdev/src/module.c +++ b/zdev/src/module.c @@ -28,7 +28,7 @@ static int suppress_module_load; /* Allow suppression of module loading. */ void module_load_suppress(int state) { - suppress_module_load = 1; + suppress_module_load = state; } /* Check if a module is currently loaded. */