diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-12-30 15:24:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 01:28:35 +0300 |
commit | 9a9fcb9cd1e0ce7df2729e1ab7a95ccdff2322ae (patch) | |
tree | da5192119f98fbf28fdc7b10e794f627769b4c5b /include/crypto/if_alg.h | |
parent | 44566ad6cb5d72f5018443923d66b30e86765080 (diff) | |
download | linux-9a9fcb9cd1e0ce7df2729e1ab7a95ccdff2322ae.tar.xz |
crypto: af_alg - Fix socket double-free when accept fails
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/crypto/if_alg.h')
0 files changed, 0 insertions, 0 deletions