aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 5183ec5a4517..e3f9973abbdc 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2220,7 +2220,8 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
2220 if (i < 0) 2220 if (i < 0)
2221 goto notest; 2221 goto notest;
2222 2222
2223 return alg_test_cipher(alg_test_descs + i, driver, type, mask); 2223 rc = alg_test_cipher(alg_test_descs + i, driver, type, mask);
2224 goto test_done;
2224 } 2225 }
2225 2226
2226 i = alg_find_test(alg); 2227 i = alg_find_test(alg);
@@ -2229,6 +2230,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
2229 2230
2230 rc = alg_test_descs[i].test(alg_test_descs + i, driver, 2231 rc = alg_test_descs[i].test(alg_test_descs + i, driver,
2231 type, mask); 2232 type, mask);
2233test_done:
2232 if (fips_enabled && rc) 2234 if (fips_enabled && rc)
2233 panic("%s: %s alg self test failed in fips mode!\n", driver, alg); 2235 panic("%s: %s alg self test failed in fips mode!\n", driver, alg);
2234 2236