Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[DCCP]: dccp_v(4|6)_ctl_socket is leaked.

This seems a purism as module can't be unloaded, but though if cleanup
method is present it should be correct and clean all staff created.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Denis V. Lunev and committed by
David S. Miller
4f049b4f 7630f026

+2
+1
net/dccp/ipv4.c
··· 1020 1020 1021 1021 static void __exit dccp_v4_exit(void) 1022 1022 { 1023 + sock_release(dccp_v4_ctl_sk->sk_socket); 1023 1024 inet_unregister_protosw(&dccp_v4_protosw); 1024 1025 inet_del_protocol(&dccp_v4_protocol, IPPROTO_DCCP); 1025 1026 proto_unregister(&dccp_v4_prot);
+1
net/dccp/ipv6.c
··· 1202 1202 1203 1203 static void __exit dccp_v6_exit(void) 1204 1204 { 1205 + sock_release(dccp_v6_ctl_sk->sk_socket); 1205 1206 inet6_del_protocol(&dccp_v6_protocol, IPPROTO_DCCP); 1206 1207 inet6_unregister_protosw(&dccp_v6_protosw); 1207 1208 proto_unregister(&dccp_v6_prot);