mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
usermodehelper: Tidy up waiting
Rather than using a tri-state integer for the wait flag in call_usermodehelper_exec, define a proper enum, and use that. I've preserved the integer values so that any callers I've missed should still work OK. Signed-off-by: Jeremy Fitzhardinge <[email protected]> Cc: James Bottomley <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Joel Becker <[email protected]> Cc: Tony Luck <[email protected]> Cc: Kay Sievers <[email protected]> Cc: Srivatsa Vaddagiri <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: David Howells <[email protected]>
This commit is contained in:
parent
10a0a8d4e3
commit
86313c488a
14 changed files with 40 additions and 26 deletions
|
|
@ -147,7 +147,7 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info)
|
|||
info->location_id, info->serial, info->capabilities);
|
||||
envp[i] = NULL;
|
||||
|
||||
value = call_usermodehelper (argv [0], argv, envp, 0);
|
||||
value = call_usermodehelper (argv [0], argv, envp, UMH_WAIT_EXEC);
|
||||
kfree (buf);
|
||||
kfree (envp);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue