]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
X.509: fix error return value on the failed path
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 5 Oct 2020 14:46:28 +0000 (22:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Oct 2020 05:38:06 +0000 (16:38 +1100)
commit4f28945da0c502c794eb4e4d535d3ba65d3c9769
tree11789af587b413c019e709ec30c037dc54001726
parent10a2f0b311094ffd45463a529a410a51ca025f27
X.509: fix error return value on the failed path

When memory allocation fails, an appropriate return value
should be set.

Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate verification")
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/public_key_sm2.c