All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/7] kernel/sys.c: Use the simpler call_usermodehelper()
@ 2013-03-12  0:48 Lucas De Marchi
  2013-03-12  0:48 ` [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions Lucas De Marchi
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Lucas De Marchi @ 2013-03-12  0:48 UTC (permalink / raw)
  To: Oleg Nesterov
  Cc: lucas.de.marchi, David Howells, James Morris, Andrew Morton,
	linux-kernel, Lucas De Marchi

Commit "7ff6764 usermodehelper: cleanup/fix __orderly_poweroff() &&
argv_free()" simplified __orderly_poweroff() removing the need to use
call_usermodehelper_fns().

Since we are not passing any callback, it's simpler to use
call_usermodehelper().

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
---
 kernel/sys.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 81f5644..bd15276 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2203,8 +2203,7 @@ static int __orderly_poweroff(void)
 		return -ENOMEM;
 	}
 
-	ret = call_usermodehelper_fns(argv[0], argv, envp, UMH_WAIT_EXEC,
-				      NULL, NULL, NULL);
+	ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
 	argv_free(argv);
 
 	return ret;
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-03-25 12:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-12  0:48 [PATCH v3 1/7] kernel/sys.c: Use the simpler call_usermodehelper() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions Lucas De Marchi
2013-03-12 20:31   ` Andrew Morton
2013-03-12 21:52     ` Lucas De Marchi
2013-03-12 22:00       ` Andrew Morton
2013-03-12  0:48 ` [PATCH v3 3/7] kmod: split call to call_usermodehelper_fns() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 4/7] KEYS: " Lucas De Marchi
2013-03-12  1:05   ` James Morris
2013-03-12  0:48 ` [PATCH v3 5/7] coredump: remove trailling whitespaces Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 6/7] Split remaining calls to call_usermodehelper_fns() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 7/7] kmod: remove call_usermodehelper_fns() Lucas De Marchi
2013-03-25 12:56 ` [PATCH v3 4/7] KEYS: split call to call_usermodehelper_fns() David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.