]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: sctp: implement sctp_v6_destroy_sock()
authorEric Dumazet <edumazet@google.com>
Tue, 1 Dec 2015 15:20:07 +0000 (07:20 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:33:16 +0000 (19:33 -0800)
commit3ec0240c224eb1f0dd4d216b358a208befcea33d
treee940871179525ee461ae2d6fea0124886eb557b4
parent3acd81a7dd4de617d8473b5a03062ee1e50bb647
ipv6: sctp: implement sctp_v6_destroy_sock()

Orabug: 22623861

[ 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit cbff65fb298f5b9d147eb39fd4fc540d57748f69)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/sctp/socket.c