Re: [PATCH] crypto: asymmetric_keys: Fix PKCS#7 selftest error reporting
From: Herbert Xu
Date: Fri Nov 06 2026 - 06:49:08 EST
On Sun, Oct 18, 2026 at 12:35:13AM +0330, m-amirpour wrote:
> From: Muhammad Mahdi Amirpour <ampr.mhd@xxxxxxxxx>
>
> pkcs7_parse_message() returns an error pointer on failure, but the
> selftest prints ret, which still contains the result of the previous
> x509_load_certificate_list() call.
>
> Print the parser's error pointer with %pe so that a failure reports
> the actual parsing error.
>
> Signed-off-by: Muhammad Mahdi Amirpour <ampr.mhd@xxxxxxxxx>
> ---
> crypto/asymmetric_keys/selftest.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt