X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Fkmod.c;h=d9b28584f7f06c4b9e8e028f819fecd9ba28e90b;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=1e79dfcbe9acb563ea8802b5ce4c484bd1427332;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/kernel/kmod.c b/kernel/kmod.c index 1e79dfcbe..d9b28584f 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -20,6 +20,7 @@ */ #define __KERNEL_SYSCALLS__ +#include #include #include #include @@ -213,12 +214,11 @@ static void __call_usermodehelper(void *data) { struct subprocess_info *sub_info = data; pid_t pid; - int wait = sub_info->wait; /* CLONE_VFORK: wait until the usermode helper has execve'd * successfully We need the data structures to stay around * until that is done. */ - if (wait) + if (sub_info->wait) pid = kernel_thread(wait_for_helper, sub_info, CLONE_FS | CLONE_FILES | SIGCHLD); else @@ -228,7 +228,7 @@ static void __call_usermodehelper(void *data) if (pid < 0) { sub_info->retval = pid; complete(sub_info->complete); - } else if (!wait) + } else if (!sub_info->wait) complete(sub_info->complete); } @@ -250,7 +250,7 @@ static void __call_usermodehelper(void *data) int call_usermodehelper_keys(char *path, char **argv, char **envp, struct key *session_keyring, int wait) { - DECLARE_COMPLETION_ONSTACK(done); + DECLARE_COMPLETION(done); struct subprocess_info sub_info = { .complete = &done, .path = path,