]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 05:41:04 +0000 (21:41 -0800)
commit7a439c4a677039b91804b6779de18ddab6d6ebf9
tree8531786b8d7fb021c8568173eb3021ce95d913ce
parenta9c680b65484ecb6d1d257f761b2f04e1d9e2d6e
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/socket.c