diff options
author | Jarod Wilson <jarod@redhat.com> | 2009-05-04 19:49:23 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-02 14:04:42 +1000 |
commit | 941fb3287c0c0d84000b669db5450ac4886da640 (patch) | |
tree | 37363815fb940077f05265b5ce3ceae01acee8ea /crypto | |
parent | e08ca2da39db22da569dc23578103cdc942fe3ac (diff) | |
download | blackbird-obmc-linux-941fb3287c0c0d84000b669db5450ac4886da640.tar.gz blackbird-obmc-linux-941fb3287c0c0d84000b669db5450ac4886da640.zip |
crypto: testmgr - Catch base cipher self-test failures in fips mode
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/testmgr.c | 4 |
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) if (i < 0) goto notest; - return alg_test_cipher(alg_test_descs + i, driver, type, mask); + rc = alg_test_cipher(alg_test_descs + i, driver, type, mask); + goto test_done; } i = alg_find_test(alg); @@ -2229,6 +2230,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask) rc = alg_test_descs[i].test(alg_test_descs + i, driver, type, mask); +test_done: if (fips_enabled && rc) panic("%s: %s alg self test failed in fips mode!\n", driver, alg); |