Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34220
b: refs/heads/master
c: 58ec415
h: refs/heads/master
v: v3
  • Loading branch information
Michal Ludvig authored and Herbert Xu committed Sep 21, 2006
1 parent 797fa2e commit 34f2a2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 5644bda5d6aa17a70b8842eb56365d501a5da159
refs/heads/master: 58ec4152895b96f047dcf5e490ee49b4c574dec3
18 changes: 9 additions & 9 deletions trunk/drivers/crypto/padlock-sha.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,28 +262,28 @@ static struct crypto_alg sha256_alg = {

static void __init padlock_sha_check_fallbacks(void)
{
static struct crypto_tfm *tfm_sha1, *tfm_sha256;
struct crypto_tfm *tfm;

/* We'll try to allocate one TFM for each fallback
* to test that the modules are available. */
tfm_sha1 = crypto_alloc_tfm(sha1_fallback, 0);
if (!tfm_sha1) {
tfm = crypto_alloc_tfm(sha1_fallback, 0);
if (!tfm) {
printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n",
sha1_alg.cra_name, sha1_fallback);
} else {
printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha1_alg.cra_name,
crypto_tfm_alg_driver_name(tfm_sha1), crypto_tfm_alg_priority(tfm_sha1));
crypto_free_tfm(tfm_sha1);
crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm));
crypto_free_tfm(tfm);
}

tfm_sha256 = crypto_alloc_tfm(sha256_fallback, 0);
if (!tfm_sha256) {
tfm = crypto_alloc_tfm(sha256_fallback, 0);
if (!tfm) {
printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n",
sha256_alg.cra_name, sha256_fallback);
} else {
printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha256_alg.cra_name,
crypto_tfm_alg_driver_name(tfm_sha256), crypto_tfm_alg_priority(tfm_sha256));
crypto_free_tfm(tfm_sha256);
crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm));
crypto_free_tfm(tfm);
}
}

Expand Down

0 comments on commit 34f2a2d

Please sign in to comment.