summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@aristanetworks.com>2009-02-22 00:10:18 -0800
committerDavid S. Miller <davem@davemloft.net>2009-03-03 01:14:21 -0800
commit2f20d2e667ab1ca44cde5fb361386dff5bb6081d (patch)
tree5041eaca4e87d1203c631c6cb482d3b8fc7defb9 /net/ipv4
parent6eb0777228f31932fc941eafe8b08848466630a1 (diff)
downloadkernel-crypto-2f20d2e667ab1ca44cde5fb361386dff5bb6081d.tar.gz
kernel-crypto-2f20d2e667ab1ca44cde5fb361386dff5bb6081d.tar.xz
kernel-crypto-2f20d2e667ab1ca44cde5fb361386dff5bb6081d.zip
tcp: Like icmp use register_pernet_subsys
To remove the possibility of packets flying around when network devices are being cleaned up use reisger_pernet_subsys instead of register_pernet_device. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Acked-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 19d7b429a26..cf74c416831 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2443,7 +2443,7 @@ static struct pernet_operations __net_initdata tcp_sk_ops = {
void __init tcp_v4_init(void)
{
inet_hashinfo_init(&tcp_hashinfo);
- if (register_pernet_device(&tcp_sk_ops))
+ if (register_pernet_subsys(&tcp_sk_ops))
panic("Failed to create the TCP control socket.\n");
}