Skip to contentSkip to conversation

kmod: use explicit names for waiting

PATCH New Jiri Slaby 1 participant 1 message Mar 16, 2009

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

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.

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
index b2a53d0..b750675 100644
@@ -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