git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60141aa
)
crypto: af_alg - Fix socket double-free when accept fails
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 30 Dec 2015 12:24:17 +0000
(20:24 +0800)
committer
Ben Hutchings
<ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:10 +0000
(10:34 +0000)
commit
a383292c86663bbc31ac62cc0c04fc77504636a6
upstream.
When we fail an accept(2) call we will end up freeing the socket
twice, once due to the direct sk_free call and once again through
newsock.
This patch fixes this by removing the sk_free call.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
crypto/af_alg.c
patch
|
blob
|
history
diff --cc
crypto/af_alg.c
Simple merge