diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-20 02:17:24 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-20 02:17:24 -0400 |
commit | bdb275bb6486d19888cb669fedd7d3eea2031669 (patch) | |
tree | a6d78624f1e8d7a797803636d1d92e6ae584949b /crypto | |
parent | b0d765219fb3308638754e28f71377d3752f1266 (diff) | |
parent | 7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Merge crypto tree to pick up vmx changes.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/hmac.c | 4 | ||||
-rw-r--r-- | crypto/jitterentropy-kcapi.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c index a68c1266121f..ac8c611ee33e 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c | |||
@@ -157,6 +157,10 @@ static int hmac_init_tfm(struct crypto_tfm *tfm) | |||
157 | 157 | ||
158 | parent->descsize = sizeof(struct shash_desc) + | 158 | parent->descsize = sizeof(struct shash_desc) + |
159 | crypto_shash_descsize(hash); | 159 | crypto_shash_descsize(hash); |
160 | if (WARN_ON(parent->descsize > HASH_MAX_DESCSIZE)) { | ||
161 | crypto_free_shash(hash); | ||
162 | return -EINVAL; | ||
163 | } | ||
160 | 164 | ||
161 | ctx->hash = hash; | 165 | ctx->hash = hash; |
162 | return 0; | 166 | return 0; |
diff --git a/crypto/jitterentropy-kcapi.c b/crypto/jitterentropy-kcapi.c index 699db1726ead..701b8d86ab49 100644 --- a/crypto/jitterentropy-kcapi.c +++ b/crypto/jitterentropy-kcapi.c | |||
@@ -193,7 +193,7 @@ static void __exit jent_mod_exit(void) | |||
193 | crypto_unregister_rng(&jent_alg); | 193 | crypto_unregister_rng(&jent_alg); |
194 | } | 194 | } |
195 | 195 | ||
196 | subsys_initcall(jent_mod_init); | 196 | module_init(jent_mod_init); |
197 | module_exit(jent_mod_exit); | 197 | module_exit(jent_mod_exit); |
198 | 198 | ||
199 | MODULE_LICENSE("Dual BSD/GPL"); | 199 | MODULE_LICENSE("Dual BSD/GPL"); |