aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock-sha.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/padlock-sha.c')
-rw-r--r--drivers/crypto/padlock-sha.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c
index 95e9971d1a70..b028db61c301 100644
--- a/drivers/crypto/padlock-sha.c
+++ b/drivers/crypto/padlock-sha.c
@@ -262,28 +262,28 @@ static struct crypto_alg sha256_alg = {
262 262
263static void __init padlock_sha_check_fallbacks(void) 263static void __init padlock_sha_check_fallbacks(void)
264{ 264{
265 static struct crypto_tfm *tfm_sha1, *tfm_sha256; 265 struct crypto_tfm *tfm;
266 266
267 /* We'll try to allocate one TFM for each fallback 267 /* We'll try to allocate one TFM for each fallback
268 * to test that the modules are available. */ 268 * to test that the modules are available. */
269 tfm_sha1 = crypto_alloc_tfm(sha1_fallback, 0); 269 tfm = crypto_alloc_tfm(sha1_fallback, 0);
270 if (!tfm_sha1) { 270 if (!tfm) {
271 printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", 271 printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n",
272 sha1_alg.cra_name, sha1_fallback); 272 sha1_alg.cra_name, sha1_fallback);
273 } else { 273 } else {
274 printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha1_alg.cra_name, 274 printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha1_alg.cra_name,
275 crypto_tfm_alg_driver_name(tfm_sha1), crypto_tfm_alg_priority(tfm_sha1)); 275 crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm));
276 crypto_free_tfm(tfm_sha1); 276 crypto_free_tfm(tfm);
277 } 277 }
278 278
279 tfm_sha256 = crypto_alloc_tfm(sha256_fallback, 0); 279 tfm = crypto_alloc_tfm(sha256_fallback, 0);
280 if (!tfm_sha256) { 280 if (!tfm) {
281 printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", 281 printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n",
282 sha256_alg.cra_name, sha256_fallback); 282 sha256_alg.cra_name, sha256_fallback);
283 } else { 283 } else {
284 printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha256_alg.cra_name, 284 printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha256_alg.cra_name,
285 crypto_tfm_alg_driver_name(tfm_sha256), crypto_tfm_alg_priority(tfm_sha256)); 285 crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm));
286 crypto_free_tfm(tfm_sha256); 286 crypto_free_tfm(tfm);
287 } 287 }
288} 288}
289 289