Commit d55cd294 authored by Alexander Couzens's avatar Alexander Couzens Committed by Greg Kroah-Hartman
Browse files

l2tp: protect tunnel->del_work by ref_count



[ Upstream commit 06a15f51 ]

There is a small chance that tunnel_free() is called before tunnel->del_work scheduled
resulting in a zero pointer dereference.

Signed-off-by: default avatarAlexander Couzens <lynxis@fe80.eu>
Acked-by: default avatarJames Chapman <jchapman@katalix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9cda65f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment