diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/batman-adv/soft-interface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 403b8c46085e..6f20d339e33a 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -582,6 +582,13 @@ static void batadv_softif_free(struct net_device *dev) | |||
582 | { | 582 | { |
583 | batadv_debugfs_del_meshif(dev); | 583 | batadv_debugfs_del_meshif(dev); |
584 | batadv_mesh_free(dev); | 584 | batadv_mesh_free(dev); |
585 | |||
586 | /* some scheduled RCU callbacks need the bat_priv struct to accomplish | ||
587 | * their tasks. Wait for them all to be finished before freeing the | ||
588 | * netdev and its private data (bat_priv) | ||
589 | */ | ||
590 | rcu_barrier(); | ||
591 | |||
585 | free_netdev(dev); | 592 | free_netdev(dev); |
586 | } | 593 | } |
587 | 594 | ||