tcp: Like icmp use register_pernet_subsys
authorEric W. Biederman <ebiederm@aristanetworks.com>
Sun, 22 Feb 2009 08:10:18 +0000 (00:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2009 03:54:49 +0000 (19:54 -0800)
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>
net/ipv4/tcp_ipv4.c

index f6b962f56ab425f5bb3480e8433c888e7169a861..a7381205bbfced5870961358758faa45e6e26357 100644 (file)
@@ -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");
 }