From: Eric W. Biederman Date: Sun, 22 Feb 2009 08:10:18 +0000 (-0800) Subject: tcp: Like icmp use register_pernet_subsys X-Git-Tag: v2.6.29-rc8~51^2~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2f20d2e667ab1ca44cde5fb361386dff5bb6081d;p=~emulex%2Finfiniband.git 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 Acked-by: Denis V. Lunev Signed-off-by: David S. Miller --- 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"); }