diff options
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index d3a1112b9d9c..9f8bb68911e4 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -987,7 +987,11 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo | |||
987 | rt_cache_flush(dev_net(dev), 0); | 987 | rt_cache_flush(dev_net(dev), 0); |
988 | break; | 988 | break; |
989 | case NETDEV_UNREGISTER_BATCH: | 989 | case NETDEV_UNREGISTER_BATCH: |
990 | rt_cache_flush_batch(); | 990 | /* The batch unregister is only called on the first |
991 | * device in the list of devices being unregistered. | ||
992 | * Therefore we should not pass dev_net(dev) in here. | ||
993 | */ | ||
994 | rt_cache_flush_batch(NULL); | ||
991 | break; | 995 | break; |
992 | } | 996 | } |
993 | return NOTIFY_DONE; | 997 | return NOTIFY_DONE; |