]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KEYS: split call to call_usermodehelper_fns()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 26 Mar 2013 23:25:52 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:54 +0000 (17:12 +1100)
commita64512c3fe2d5a6bded602666829b98dd80ad7e1
tree2029f3a177b719f4836032ce0ca401b15af0dc1e
parent81a2eff7c582ff41fca0faba53334226abd4cd95
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>
Acked-by: 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