summaryrefslogtreecommitdiff
path: root/net/l2tp/l2tp_netlink.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-03-29 09:45:29 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-29 19:26:28 +0300
commite91793bb615cf6cdd59c0b6749fe173687bb0947 (patch)
tree9c97fe223f9e484f08928289635c9e9e09c43ab9 /net/l2tp/l2tp_netlink.c
parent94d7ee0baa8b764cf64ad91ed69464c1a6a0066b (diff)
downloadlinux-e91793bb615cf6cdd59c0b6749fe173687bb0947.tar.xz
l2tp: purge socket queues in the .destruct() callback
The Rx path may grab the socket right before pppol2tp_release(), but nothing guarantees that it will enqueue packets before skb_queue_purge(). Therefore, the socket can be destroyed without its queues fully purged. Fix this by purging queues in pppol2tp_session_destruct() where we're guaranteed nothing is still referencing the socket. Fixes: 9e9cb6221aa7 ("l2tp: fix userspace reception on plain L2TP sockets") Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_netlink.c')
0 files changed, 0 insertions, 0 deletions