fib: add rtnl locking in ip_fib_net_exit

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>

authored by Eric Dumazet and committed by David S. Miller e2666f84 c031235b

+2
+2
net/ipv4/fib_frontend.c
··· 1068 1068 fib4_rules_exit(net); 1069 1069 #endif 1070 1070 1071 + rtnl_lock(); 1071 1072 for (i = 0; i < FIB_TABLE_HASHSZ; i++) { 1072 1073 struct fib_table *tb; 1073 1074 struct hlist_head *head; ··· 1081 1080 fib_free_table(tb); 1082 1081 } 1083 1082 } 1083 + rtnl_unlock(); 1084 1084 kfree(net->ipv4.fib_table_hash); 1085 1085 } 1086 1086