projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: hidp: fix device disconnect on idle timeout
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
crypto
/
ahash.c
diff --git
a/crypto/ahash.c
b/crypto/ahash.c
index 793a27f2493e5287c1275df40feaca7b7b14c87e..857ae2b2a2a2916e9200431eca6538d6cc39fca5 100644
(file)
--- a/
crypto/ahash.c
+++ b/
crypto/ahash.c
@@
-462,7
+462,8
@@
static int ahash_prepare_alg(struct ahash_alg *alg)
struct crypto_alg *base = &alg->halg.base;
if (alg->halg.digestsize > PAGE_SIZE / 8 ||
- alg->halg.statesize > PAGE_SIZE / 8)
+ alg->halg.statesize > PAGE_SIZE / 8 ||
+ alg->halg.statesize == 0)
return -EINVAL;
base->cra_type = &crypto_ahash_type;