Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120588
b: refs/heads/master
c: d12d6b6
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and Herbert Xu committed Dec 25, 2008
1 parent 3784d81 commit 0729a44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe5720e2b7c1e8ff95d4bf18329517cf64ad1d70
refs/heads/master: d12d6b6d37cad766b390467e770eb0ab81345d78
7 changes: 6 additions & 1 deletion trunk/crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,7 @@ static int alg_find_test(const char *alg)
int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
{
int i;
int rc;

if ((type & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_CIPHER) {
char nalg[CRYPTO_MAX_ALG_NAME];
Expand All @@ -1820,8 +1821,12 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
if (i < 0)
goto notest;

return alg_test_descs[i].test(alg_test_descs + i, driver,
rc = alg_test_descs[i].test(alg_test_descs + i, driver,
type, mask);
if (fips_enabled && rc)
panic("%s: %s alg self test failed in fips mode!\n", driver, alg);

return rc;

notest:
printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver);
Expand Down

0 comments on commit 0729a44

Please sign in to comment.