diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-12-30 20:24:17 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-18 18:16:10 +0800 |
commit | 21720b3ea4d374faaa77a1bf94a700515125301d (patch) | |
tree | c2e6790af3a4bf19911e352e00a1a1de406e9235 /crypto/eseqiv.c | |
parent | 796caacfda1cea522bd0b442b37a6a9286500487 (diff) | |
download | linux-crypto-21720b3ea4d374faaa77a1bf94a700515125301d.tar.gz linux-crypto-21720b3ea4d374faaa77a1bf94a700515125301d.zip |
crypto: af_alg - Fix socket double-free when accept fails
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.
Cc: stable@vger.kernel.org
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/eseqiv.c')
0 files changed, 0 insertions, 0 deletions