diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/api.c | 4 | ||||
-rw-r--r-- | crypto/tcrypt.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c index 55af8bb0f050..33734fd9198f 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -48,8 +48,10 @@ EXPORT_SYMBOL_GPL(crypto_mod_get); | |||
48 | 48 | ||
49 | void crypto_mod_put(struct crypto_alg *alg) | 49 | void crypto_mod_put(struct crypto_alg *alg) |
50 | { | 50 | { |
51 | struct module *module = alg->cra_module; | ||
52 | |||
51 | crypto_alg_put(alg); | 53 | crypto_alg_put(alg); |
52 | module_put(alg->cra_module); | 54 | module_put(module); |
53 | } | 55 | } |
54 | EXPORT_SYMBOL_GPL(crypto_mod_put); | 56 | EXPORT_SYMBOL_GPL(crypto_mod_put); |
55 | 57 | ||
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f0aed0106adb..11f935953816 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -691,7 +691,7 @@ static int test_hash_cycles(struct hash_desc *desc, char *p, int blen, | |||
691 | if (ret) | 691 | if (ret) |
692 | goto out; | 692 | goto out; |
693 | } | 693 | } |
694 | crypto_hash_final(desc, out); | 694 | ret = crypto_hash_final(desc, out); |
695 | if (ret) | 695 | if (ret) |
696 | goto out; | 696 | goto out; |
697 | } | 697 | } |