fib: add rtnl locking in ip_fib_net_exit
commit152f99e6e48538e4c4dc71a72d35888413b5ee92
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 30 Mar 2011 23:57:46 +0000 (30 16:57 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Apr 2011 21:32:26 +0000 (21 14:32 -0700)
tree0b18837130f9cce620a7e3fe1424c38ecf76791a
parent3e2b22819cdd86f0ad7fa61165d15e018ee96ad9
fib: add rtnl locking in ip_fib_net_exit

[ Upstream commit e2666f84958adb3a034b98e99699b55705117e01 ]

Daniel J Blueman reported a lockdep splat in trie_firstleaf(), caused by
RTNL being not locked before a call to fib_table_flush()

Reported-by: Daniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/fib_frontend.c