]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kmod: split call to call_usermodehelper_fns()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 20 Mar 2013 04:08:28 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:27 +0000 (16:34 +1100)
commit82ac1decf3b7dc414b73c85a92d4d85216ae5595
treef02a254b8f5be68ef41e47f03ac18804897594ef
parent5a4cbce5990c8a165c9e7569ab2d9bfc1aad9a71
kmod: split call to call_usermodehelper_fns()

Use call_usermodehelper_setup() + call_usermodehelper_exec() instead of
calling call_usermodehelper_fns().  In case the latter returns -ENOMEM the
cleanup function may had not been called - in this case we would not free
argv and module_name.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: 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>
kernel/kmod.c