diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 14:37:10 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 14:37:10 +0200 |
commit | 215ec8c218139dd33a69f9e27d56677c5bb9f204 (patch) | |
tree | 3aa9bde53c1065d79786551902a7f1b702e842d7 /crypto | |
parent | 36df8fc1697c139acd8c305c6987531e92146d56 (diff) | |
download | linux-crypto-215ec8c218139dd33a69f9e27d56677c5bb9f204.tar.gz linux-crypto-215ec8c218139dd33a69f9e27d56677c5bb9f204.zip |
crypto: user - Initialise match in crypto_alg_match
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypto_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index 748990fa..2abca780 100644 --- 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; |