]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KEYS: 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>
Fri, 22 Mar 2013 04:33:54 +0000 (15:33 +1100)
commita29db2b018db805088a70e314fb39c3e2b4779ae
tree0c8662242965fb39eef4de88b4040131e761acc1
parenta081438824847c8bc6ff6cedf1b491c81b79c2e4
KEYS: split call to call_usermodehelper_fns()

Use call_usermodehelper_setup() + call_usermodehelper_exec() instead of
calling call_usermodehelper_fns().  In case there's an OOM in this last
function the cleanup function may not be called - in this case we would
miss a call to key_put().

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: 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>
security/keys/request_key.c