David Ahern
d7226c7a4d
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>
2016-08-23 23:11:36 -07:00
..
2016-07-08 13:23:12 +02:00
2016-08-09 13:42:36 +03:00
2016-08-13 15:15:54 -07:00
2016-07-05 09:06:28 -07:00
2016-06-18 20:55:34 -07:00
2016-07-24 00:53:32 -04:00
2016-07-18 09:33:28 +03:00
2016-08-09 21:42:44 -07:00
2016-06-28 05:26:14 -04:00
2016-06-23 11:23:49 +02:00
2016-08-08 21:41:42 +02:00
2016-08-13 15:15:54 -07:00
2016-07-29 17:38:46 -07:00
2016-07-05 14:08:47 -07:00
2016-04-11 22:37:37 +01:00
2016-07-19 19:42:01 -07:00
2016-05-16 14:00:43 -04:00
2016-07-08 13:23:12 +02:00
2016-08-23 23:11:36 -07:00
2016-08-23 17:46:17 -07:00
2016-08-13 15:09:07 -07:00
2016-07-29 17:38:46 -07:00
2016-07-25 11:17:16 -07:00
2016-08-19 17:55:43 -07:00
2016-06-17 21:25:29 -07:00
2016-05-29 22:33:25 -07:00
2016-05-09 15:59:24 -04:00
2016-08-05 14:23:25 +02:00
2016-03-19 10:05:34 -07:00
2016-07-09 17:45:56 -04:00
2016-07-25 10:32:59 -07:00
2016-08-18 15:17:00 +02:00
2016-06-27 15:06:18 -04:00
2016-06-09 22:26:24 -07:00
2016-07-11 02:02:03 +02:00
2016-08-10 23:13:23 -07:00
2016-07-24 00:53:32 -04:00
2016-05-17 14:11:19 -04:00
2016-07-15 11:36:58 -07:00
2016-04-05 10:48:53 +02:00
2016-07-13 11:53:40 -07:00
2016-08-09 17:13:56 +01:00
2016-08-22 21:01:57 -07:00
2016-08-23 17:22:53 -07:00
2016-08-12 12:32:24 -07:00
2016-07-14 13:34:29 -07:00
2016-08-15 13:55:36 -07:00
2016-07-26 16:19:19 -07:00
2016-08-15 05:05:21 +03:00
2016-08-17 17:26:58 -07:00
2016-05-09 22:45:33 -04:00
2016-05-09 15:59:24 -04:00
2016-06-09 23:41:03 -07:00
2016-07-19 20:49:16 -07:00
2016-07-19 20:49:16 -07:00
2016-05-19 19:12:14 -07:00
2016-06-06 20:16:22 +10:00