net: fib_rules ordering fixes.
authorEric W. Biederman <ebiederm@maxwell.aristanetworks.com>
Sat, 8 Nov 2008 06:52:34 +0000 (22:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Nov 2008 06:52:34 +0000 (22:52 -0800)
commit5d6d480908300a0c0b3be8b58567dfcef62c83a5
treecf407634d239d7bf5407c576d957eca711b6b654
parent3d8160b1493bcadca74fbb635d79b3928b8999cf
net: fib_rules ordering fixes.

We need to setup the network namespace state before we register
the notifier.  Otherwise if a network device is already registered
we get a nasty NULL pointer dereference.

Signed-off-by: Eric W. Biederman <ebiederm@maxwell.aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c