projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
l2tp: fix use-after-free during module unload
[cascardo/linux.git]
/
net
/
l2tp
/
l2tp_core.c
diff --git
a/net/l2tp/l2tp_core.c
b/net/l2tp/l2tp_core.c
index
1e40dac
..
a2ed3bd
100644
(file)
--- a/
net/l2tp/l2tp_core.c
+++ b/
net/l2tp/l2tp_core.c
@@
-1855,6
+1855,9
@@
static __net_exit void l2tp_exit_net(struct net *net)
(void)l2tp_tunnel_delete(tunnel);
}
rcu_read_unlock_bh();
+
+ flush_workqueue(l2tp_wq);
+ rcu_barrier();
}
static struct pernet_operations l2tp_net_ops = {