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 <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Vineeth Vijayan
2025-08-26 12:34:00 +02:00
committed by Steffen Eiden
parent a4f48415a0
commit 0356d78bc2

View File

@@ -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. */