Re: [PATCH] certs: Print correct error on pkcs7_parse_message() failure
From: Ben Boeckel
Date: Mon Oct 26 2026 - 23:03:39 EST
On Sun, Oct 25, 2026 at 10:58:29 +0800, Tang Bin wrote:
> The panic on IS_ERR(pkcs7) printed 'ret', which still holds the result of
> the prior successful x509_load_certificate_list() (0) rather than the pkcs7
> parse error. Use PTR_ERR(pkcs7) and %ld so the real failure code is
> reported.
>
> Fixes: 8cd9f234f706 ("certs: Move RSA self-test data to separate file")
>
> Signed-off-by: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
Already submitted:
https://www.spinics.net/lists/keyrings/msg19526.html
--Ben