]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KEYS: asymmetric: return ENOMEM if akcipher_request_alloc() fails
authorEric Biggers <ebiggers@google.com>
Wed, 9 Oct 2019 23:03:49 +0000 (16:03 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 12 Dec 2019 21:45:16 +0000 (23:45 +0200)
commitbea37414453eb08d4ceffeb60a9d490dbc930cea
tree3883d3b0d8e2b2c5114ebb967f06c4fd0abd1afb
parent601f0093f2647db67be40b62e13cd0660990a7c8
KEYS: asymmetric: return ENOMEM if akcipher_request_alloc() fails

No error code was being set on this error path.

Cc: stable@vger.kernel.org
Fixes: ad4b1eb5fb33 ("KEYS: asym_tpm: Implement encryption operation [ver #2]")
Fixes: c08fed737126 ("KEYS: Implement encrypt, decrypt and sign for software asymmetric key [ver #2]")
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
crypto/asymmetric_keys/asym_tpm.c
crypto/asymmetric_keys/public_key.c