summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-06-01 10:01:03 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-01 10:01:39 +0200
commita0c6d753ff7f7d3cb3bb359b0d05886c206dfec9 (patch)
tree63fbab20f5408a4fca5ba667116918fc84df48e4 /crypto
parent774c913711e73e96719baa9d77e5c1bd717a14c4 (diff)
parentf796bc40cc381dfc082ae3ff70023aa70a06621f (diff)
downloadlinux-crypto-a0c6d753ff7f7d3cb3bb359b0d05886c206dfec9.tar.gz
linux-crypto-a0c6d753ff7f7d3cb3bb359b0d05886c206dfec9.zip
Merge branch 'linus' into perfcounters/core
Merge reason: merge almost-rc8 into perfcounters/core, which was -rc6 based - to pick up the latest upstream fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/api.c3
-rw-r--r--crypto/eseqiv.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c
index 314dab96..fd2545de 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -221,7 +221,8 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
request_module(name);
- if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask) &&
+ if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
+ CRYPTO_ALG_NEED_FALLBACK) &&
snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp))
request_module(tmp);
diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c
index 2a342c8e..3ca3b669 100644
--- a/crypto/eseqiv.c
+++ b/crypto/eseqiv.c
@@ -153,7 +153,8 @@ static int eseqiv_givencrypt(struct skcipher_givcrypt_request *req)
if (err)
goto out;
- eseqiv_complete2(req);
+ if (giv != req->giv)
+ eseqiv_complete2(req);
out:
return err;