fib_trie: call fib_table_flush_external under RTNL
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 10 Mar 2015 20:03:54 +0000 (21:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Mar 2015 20:46:26 +0000 (16:46 -0400)
commit6dede75b7e8ed4af31c3b06aec84401a5db88be9
tree3aa394c164823beea07464d6d7181457d6d739f4
parent8a08919f43d9955d5afc5d6b416964401e3c58d8
fib_trie: call fib_table_flush_external under RTNL

Move rtnl_lock() before the call to fib4_rules_exit so that
fib_table_flush_external is called under RTNL.

Fixes: 104616e74e0b ("switchdev: don't support custom ip rules, for now")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c