mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Steffen Eiden
parent
a4f48415a0
commit
0356d78bc2
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user