projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
573da62
)
crypto: user - Initialise match in crypto_alg_match
author
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 21 Oct 2011 12:37:10 +0000
(14:37 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 21 Oct 2011 12:37:10 +0000
(14:37 +0200)
We need to default match to 0 as otherwise it may lead to a false
positive.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_user.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/crypto_user.c
b/crypto/crypto_user.c
index 748990fa3c5369deb77df6128cd19acd96f2e57c..2abca780312d74246c60d7fcc9f6e9bf71f421c0 100644
(file)
--- a/
crypto/crypto_user.c
+++ b/
crypto/crypto_user.c
@@
-40,7
+40,6
@@
struct crypto_dump_info {
static struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact)
{
- int match;
struct crypto_alg *q, *alg = NULL;
down_read(&crypto_alg_sem);
@@
-49,6
+48,7
@@
static struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact)
return NULL;
list_for_each_entry(q, &crypto_alg_list, cra_list) {
+ int match = 0;
if ((q->cra_flags ^ p->cru_type) & p->cru_mask)
continue;