Daniel Borkmann 0a2fbac197 net: sctp: decouple cleaning some socket data from endpoint
Rather instead of having the endpoint clean the garbage from the
socket, use a sk_destruct handler sctp_destruct_sock(), that does
the job for that when there are no more references on the socket.
At least do this for our crypto transform through crypto_free_hash()
that is allocated when in listening state.

Also, perform sctp_put_port() only when sk is valid. At a later
point in time we can still determine if there's an option of
placing this into sk_prot->unhash() or sctp_endpoint_free() without
any races. For now, leave it in sctp_endpoint_destroy() though.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-06-25 16:33:04 -07:00
..
2013-06-10 17:35:25 -07:00
2013-05-14 13:02:30 -07:00
2013-06-24 00:15:54 -07:00
2013-03-17 14:35:13 -04:00
2013-03-28 01:20:42 -04:00
2013-06-19 23:06:52 -07:00
2013-06-13 02:39:04 -07:00
2013-05-27 22:50:59 -07:00
2013-02-21 12:05:51 -08:00
2013-05-27 22:50:59 -07:00