]> git.kernelconcepts.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>
Thu, 21 Mar 2013 05:34:27 +0000 (16:34 +1100)
commit2781bc10c3c82a788458d6c2cae067f598cfb995
treed1941ccdfe1779f1130395aaa49494a8949319cc
parent82ac1decf3b7dc414b73c85a92d4d85216ae5595
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