Commit 6ca793abf815d42bcb9022587c0df7691d779a9d

Authored by Linus Torvalds

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

Showing 1 changed file Side-by-side Diff

... ... @@ -455,6 +455,9 @@
455 455 {
456 456 struct af_alg_completion *completion = req->data;
457 457  
  458 + if (err == -EINPROGRESS)
  459 + return;
  460 +
458 461 completion->err = err;
459 462 complete(&completion->completion);
460 463 }