aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
Diffstat (limited to 'net/8021q')
-rw-r--r--net/8021q/vlan_dev.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index ee4ae0944cef..b65623f90660 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -704,11 +704,7 @@ static void vlan_dev_netpoll_cleanup(struct net_device *dev)
704 704
705 info->netpoll = NULL; 705 info->netpoll = NULL;
706 706
707 /* Wait for transmitting packets to finish before freeing. */ 707 __netpoll_free_rcu(netpoll);
708 synchronize_rcu_bh();
709
710 __netpoll_cleanup(netpoll);
711 kfree(netpoll);
712} 708}
713#endif /* CONFIG_NET_POLL_CONTROLLER */ 709#endif /* CONFIG_NET_POLL_CONTROLLER */
714 710