diff options
Diffstat (limited to 'net/l2tp/l2tp_core.c')
-rw-r--r-- | net/l2tp/l2tp_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 52b5a2797c0c..e4dec03a19fe 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c | |||
@@ -1735,7 +1735,8 @@ static __net_exit void l2tp_exit_net(struct net *net) | |||
1735 | } | 1735 | } |
1736 | rcu_read_unlock_bh(); | 1736 | rcu_read_unlock_bh(); |
1737 | 1737 | ||
1738 | flush_workqueue(l2tp_wq); | 1738 | if (l2tp_wq) |
1739 | flush_workqueue(l2tp_wq); | ||
1739 | rcu_barrier(); | 1740 | rcu_barrier(); |
1740 | 1741 | ||
1741 | for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) | 1742 | for (hash = 0; hash < L2TP_HASH_SIZE_2; hash++) |