[Oneiric PATCH 8/8] UBUNTU: SAUCE: fsam7400: use UMH_WAIT_PROC consistently
Tim Gardner
tim.gardner at canonical.com
Mon Mar 26 01:28:57 UTC 2012
BugLink: http://bugs.launchpad.net/bugs/963685
Inspired by Testuo Handa, "usermodehelper: use UMH_WAIT_PROC consistently"
Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
---
ubuntu/fsam7400/fsam7400.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ubuntu/fsam7400/fsam7400.c b/ubuntu/fsam7400/fsam7400.c
index cbc40b8..c08e638 100644
--- a/ubuntu/fsam7400/fsam7400.c
+++ b/ubuntu/fsam7400/fsam7400.c
@@ -222,11 +222,11 @@ static inline void do_ipw2100_loading(int state)
if (state == RADIO_ON) {
char *argv[] = { "/sbin/modprobe", "-s", "-k", "ipw2100", NULL };
mode = "loading";
- status = call_usermodehelper(argv[0], argv, envp, 1);
+ status = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
} else {
char *argv[] = { "/sbin/rmmod", "ipw2100", NULL };
mode = "removing";
- status = call_usermodehelper(argv[0], argv, envp, 1);
+ status = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
}
DEBUG_OUT2("%s of ipw2100 module %s\n", mode, status == 0 ? "successful" : "FAILED");
}
--
1.7.9.1
More information about the kernel-team
mailing list