diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-11-23 01:11:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-11-23 01:11:50 -0800 |
commit | ff98263a746108a5e54b7176f106ace5225c5f58 (patch) | |
tree | 48aeaa6622d53defd1d58db3b49e77c37b983051 /crypto/algif_hash.c | |
parent | 6d6414ab5683801f479e1fb0c379f438d7756066 (diff) | |
parent | c24d856ab6af7c070faf98f3e4db107d5f5e0568 (diff) | |
download | linux-crypto-ff98263a746108a5e54b7176f106ace5225c5f58.tar.gz linux-crypto-ff98263a746108a5e54b7176f106ace5225c5f58.zip |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu:
"The last push broke algif_hash for all shash implementations, so this
is a follow-up to fix that.
This also fixes a problem in the crypto scatterwalk that triggers a
BUG_ON with certain debugging options due to the new vmalloced-stack
code"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: scatterwalk - Remove unnecessary aliasing check in map_and_copy
crypto: algif_hash - Fix result clobbering in recvmsg
Diffstat (limited to '')
-rw-r--r-- | crypto/algif_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index 05e21b46..d19b09cd 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -214,7 +214,7 @@ static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, ahash_request_set_crypt(&ctx->req, NULL, ctx->result, 0); - if (!result) { + if (!result && !ctx->more) { err = af_alg_wait_for_completion( crypto_ahash_init(&ctx->req), &ctx->completion); |