summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-08-24 07:05:27 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-24 09:11:36 +0300
commitd7226c7a4dd19929d6df4ae04698da2fcf6f875a (patch)
tree33b158ecdb0ed30ca22110588dc368b91a10f9ed /net/bluetooth
parent7b996243fab46092fb3a29c773c54be8152366e4 (diff)
downloadlinux-d7226c7a4dd19929d6df4ae04698da2fcf6f875a.tar.xz
net: diag: Fix refcnt leak in error path destroying socket
inet_diag_find_one_icsk takes a reference to a socket that is not released if sock_diag_destroy returns an error. Fix by changing tcp_diag_destroy to manage the refcnt for all cases and remove the sock_put calls from tcp_abort. Fixes: c1e64e298b8ca ("net: diag: Support destroying TCP sockets") Reported-by: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions