summaryrefslogtreecommitdiff
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2022-10-20 01:36:01 +0300
committerDavid S. Miller <davem@davemloft.net>2022-10-24 11:40:39 +0300
commit6431b0f6ff1633ae598667e4cdd93830074a03e8 (patch)
treea83446bd7d28f159edec72799cf0f254c5a03858 /net/ipv6/af_inet6.c
parent1651951ebea54970e0bda60c638fc2eee7a6218f (diff)
downloadlinux-6431b0f6ff1633ae598667e4cdd93830074a03e8.tar.xz
sctp: Call inet6_destroy_sock() via sk->sk_destruct().
After commit d38afeec26ed ("tcp/udp: Call inet6_destroy_sock() in IPv6 sk->sk_destruct()."), we call inet6_destroy_sock() in sk->sk_destruct() by setting inet6_sock_destruct() to it to make sure we do not leak inet6-specific resources. SCTP sets its own sk->sk_destruct() in the sctp_init_sock(), and SCTPv6 socket reuses it as the init function. To call inet6_sock_destruct() from SCTPv6 sk->sk_destruct(), we set sctp_v6_destruct_sock() in a new init function. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
0 files changed, 0 insertions, 0 deletions