]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usermodehelper: export call_usermodehelper_exec() and call_usermodehelper_setup()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 20 Mar 2013 04:08:27 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:27 +0000 (16:34 +1100)
commite450bd0df033c087fbccb64e39ae2629bcd5b324
tree70c5b19467e0becb4a32be1d143a69619388fa18
parent3abe100a33cebc5c62d8e0096c8d73a26cfb06b2
usermodehelper: export call_usermodehelper_exec() and call_usermodehelper_setup()

call_usermodehelper_setup() + call_usermodehelper_exec() need to be called
instead of call_usermodehelper_fns() when the cleanup function needs to be
called even when an ENOMEM error occurs.  In this case using
call_usermodehelper_fns() the user can't distinguish if the cleanup
function was called or not.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Tejun Heo <tj@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/kmod.h
kernel/kmod.c