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

Message ID 20230208203711.951845-1-saeed.mirzamohammadi@oracle.com
Headers
Series crypto: testmgr - don't generate WARN for missing modules |

Message

Saeed Mirzamohammadi Feb. 8, 2023, 8:37 p.m. UTC
  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@hpe.com
  author date      : 2022-08-13 23:14:43
  committer        : herbert@gondor.apana.org.au
  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(-)