Re: [PATCH] X.509: fix error return value on the failed path

2020-10-07 Thread Herbert Xu
On Mon, Oct 05, 2020 at 10:46:28PM +0800, Tianjia Zhang wrote: > 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 > --- > crypto/asymmetric_keys/publ

[PATCH] X.509: fix error return value on the failed path

2020-10-05 Thread Tianjia Zhang
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 --- crypto/asymmetric_keys/public_key_sm2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --g