[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120717.151832.1306978935355646723.davem@davemloft.net>
Date: Tue, 17 Jul 2012 15:18:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: john.r.fastabend@...el.com
Cc: mark.d.rustad@...el.com, netdev@...r.kernel.org,
linux-wireless@...r.kernel.org, netfilter-devel@...r.kernel.org
Subject: Re: That's pretty much it for 3.5.0
From: John Fastabend <john.r.fastabend@...el.com>
Date: Tue, 17 Jul 2012 15:13:36 -0700
> Perhaps the easiest way is to check net->count this should be zero
> until setup_net is called.
>
> if (!atomic_read(&init_net.count))
> return ret;
>
Won't work, setup_net() runs via a pure_initcall().
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists