diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-15 23:28:38 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-07-15 15:49:04 -0700 |
commit | a95aa5c85186df292b00edeb49e2b2cb05d4b4dc (patch) | |
tree | 757e28a9695aec51550c7519400f12a729f62b7d /crypto/gcm.c | |
parent | 7d71209adc20ac57b7c88a5849a46ccfc02eeb85 (diff) | |
download | linux-crypto-a95aa5c85186df292b00edeb49e2b2cb05d4b4dc.tar.gz linux-crypto-a95aa5c85186df292b00edeb49e2b2cb05d4b4dc.zip |
keys: asymmetric: fix error return code in software_key_query()
Fix to return negative error code -ENOMEM from kmalloc() error handling
case instead of 0, as done elsewhere in this function.
Fixes: 1bef742086ae ("X.509: parse public key parameters from x509 for akcipher")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions