kmod: use explicit names for waiting
PATCH 1/1 kmod: use explicit names for waiting
As call_usermodehelper accepts enum umh_wait as a wait parameter, use constants from this enum instead of bool in __request_module.
Signed-off-by Jiri Slaby <[email protected]>
Cc Arjan van de Ven <[email protected]>
Cc Rusty Russell <[email protected]>
--- kernel/kmod.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
kernel/kmod.c +2 -1
@@ -109,7 +109,8 @@ int __request_module(bool wait, const char *fmt, ...)return -ENOMEM ; } - ret =call_usermodehelper (modprobe_path, argv, envp, wait); + ret =call_usermodehelper (modprobe_path, argv, envp, + wait ?UMH_WAIT_PROC :UMH_WAIT_EXEC );atomic_dec (&kmod_concurrent);return ret; }
Signature · 1 line
1.6.2