[PATCH stable 0/1] crypto: testmgr - don't generate WARN for missing modules

From: Saeed Mirzamohammadi
Date: Wed Feb 08 2023 - 15:38:40 EST


I'm backporting the following stable patch to v5.11+ branches.

Commit Data:
commit-id : a76bd86a85cac9feddc66d38019f943d054f0218
subject : crypto: testmgr - don't generate WARN for missing modules
author : elliott@xxxxxxx
author date : 2022-08-13 23:14:43
committer : herbert@xxxxxxxxxxxxxxxxxxx
committer date : 2022-08-19 10:39:39

We observed the same WARN issue when loading the tcrypt module in a v5.15 kernel:

[ 84.577572] modprobe tcrypt
[ 84.920899] alg: skcipher: failed to allocate transform for ecb(cast5): -2
[ 84.923050] ------------[ cut here ]------------
[ 84.924541] alg: self-tests for ecb(cast5) (ecb(cast5)) failed (rc=-2)
[ 84.924557] WARNING: CPU: 0 PID: 3910 at crypto/testmgr.c:5681 alg_test+0x344/0x5d8

This patch fixes this issue.

Robert Elliott (1):
crypto: testmgr - don't generate WARN for missing modules

crypto/testmgr.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

--
2.39.1