]> git.hungrycats.org Git - linux/commit
ipv6: sctp: implement sctp_v6_destroy_sock()
authorEric Dumazet <edumazet@google.com>
Tue, 1 Dec 2015 15:20:07 +0000 (07:20 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 14 Dec 2015 17:19:27 +0000 (12:19 -0500)
commit1ced23539f9809cbdb86eed9b9626495720530aa
tree3e78ae316768df74db41cbba00a3e5cdd9cf6c3d
parent18c103ad86330b59a9ea2f8de4ce73cbb36fa573
ipv6: sctp: implement sctp_v6_destroy_sock()

[ Upstream commit 602dd62dfbda3e63a2d6a3cbde953ebe82bf5087 ]

Dmitry Vyukov reported a memory leak using IPV6 SCTP sockets.

We need to call inet6_destroy_sock() to properly release
inet6 specific fields.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/sctp/socket.c