aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-04-03 17:21:33 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-03 17:21:33 -0400
commit4f049b4f33d07bd11335c3a074ebef14213a3e37 (patch)
tree01b9ce8cee9e75cf69269779b457c82b4c32cb77 /net/dccp
parent7630f026810a63464e47391ab1e03674c33eb1b8 (diff)
[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>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/ipv4.c1
-rw-r--r--net/dccp/ipv6.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index f97049bf22c0..6d8f684a7a49 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -1020,6 +1020,7 @@ out_proto_unregister:
1020 1020
1021static void __exit dccp_v4_exit(void) 1021static void __exit dccp_v4_exit(void)
1022{ 1022{
1023 sock_release(dccp_v4_ctl_sk->sk_socket);
1023 inet_unregister_protosw(&dccp_v4_protosw); 1024 inet_unregister_protosw(&dccp_v4_protosw);
1024 inet_del_protocol(&dccp_v4_protocol, IPPROTO_DCCP); 1025 inet_del_protocol(&dccp_v4_protocol, IPPROTO_DCCP);
1025 proto_unregister(&dccp_v4_prot); 1026 proto_unregister(&dccp_v4_prot);
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c
index 44e8b3323170..c5d9d1be56f3 100644
--- a/net/dccp/ipv6.c
+++ b/net/dccp/ipv6.c
@@ -1202,6 +1202,7 @@ out_unregister_proto:
1202 1202
1203static void __exit dccp_v6_exit(void) 1203static void __exit dccp_v6_exit(void)
1204{ 1204{
1205 sock_release(dccp_v6_ctl_sk->sk_socket);
1205 inet6_del_protocol(&dccp_v6_protocol, IPPROTO_DCCP); 1206 inet6_del_protocol(&dccp_v6_protocol, IPPROTO_DCCP);
1206 inet6_unregister_protosw(&dccp_v6_protosw); 1207 inet6_unregister_protosw(&dccp_v6_protosw);
1207 proto_unregister(&dccp_v6_prot); 1208 proto_unregister(&dccp_v6_prot);