diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-31 18:16:17 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-31 18:16:17 +0100 |
commit | 6ca793abf815d42bcb9022587c0df7691d779a9d (patch) | |
tree | 30a82abc0e6d6d73cb9ecd41bcae7bd27e2b16ed | |
parent | Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
parent | crypto: af_alg - fix backlog handling (diff) | |
download | linux-6ca793abf815d42bcb9022587c0df7691d779a9d.tar.xz linux-6ca793abf815d42bcb9022587c0df7691d779a9d.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu:
"Fix a use-after-free crash in the user-space crypto API"
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: af_alg - fix backlog handling
-rw-r--r-- | crypto/af_alg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 1fa7bc31be63..4665b79c729a 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -455,6 +455,9 @@ void af_alg_complete(struct crypto_async_request *req, int err) { struct af_alg_completion *completion = req->data; + if (err == -EINPROGRESS) + return; + completion->err = err; complete(&completion->completion); } |