staging: csr: wait for the exec in usermodehelper
authorLauri Hintsala <lauri.hintsala@bluegiga.com>
Mon, 17 Sep 2012 13:26:31 +0000 (16:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 21:50:33 +0000 (14:50 -0700)
The order of wait values has been changed by commit 9d944ef32e.
Fix the wait parameter and start to use a define instead of
"magic number".

Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/firmware.c

index dc6a04db265a4e6c99ad899477edaf0849d23697..b6d8a6e52915cf56f8b9fc3e88469bb7044a58eb 100644 (file)
@@ -286,7 +286,7 @@ uf_run_unifihelper(unifi_priv_t *priv)
 
     unifi_trace(priv, UDBG2, "running %s %s %s\n", argv[0], argv[1], argv[2]);
 
-    r = call_usermodehelper(argv[0], argv, envp, 0);
+    r = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
 
     return r;
 #else