diff options
| author | Lorenzo Colitti <[email protected]> | 2018-07-07 16:31:40 +0900 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-07-08 10:56:10 +0900 |
| commit | acc2cf4e37174646a24cba42fa53c668b2338d4e (patch) | |
| tree | 70b6f2d1ea8e0b2795660bd2150fc12c481c81dd /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | e7372197e15856ec4ee66b668020a662994db103 (diff) | |
net: diag: Don't double-free TCP_NEW_SYN_RECV sockets in tcp_abort
When tcp_diag_destroy closes a TCP_NEW_SYN_RECV socket, it first
frees it by calling inet_csk_reqsk_queue_drop_and_and_put in
tcp_abort, and then frees it again by calling sock_gen_put.
Since tcp_abort only has one caller, and all the other codepaths
in tcp_abort don't free the socket, just remove the free in that
function.
Cc: David Ahern <[email protected]>
Tested: passes Android sock_diag_test.py, which exercises this codepath
Fixes: d7226c7a4dd1 ("net: diag: Fix refcnt leak in error path destroying socket")
Signed-off-by: Lorenzo Colitti <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Tested-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions