]> git.itanic.dy.fi Git - linux-stable/commit
l2tp: protect tunnel->del_work by ref_count
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 28 Sep 2015 09:32:42 +0000 (11:32 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 28 Oct 2015 15:38:10 +0000 (16:38 +0100)
commitac2bc9a7931df4492ac388dd9ea4bb82b99ee43b
tree612722d469283e7189b21de7aff20300fd0a3210
parent660f4744c35c1fcde81bafaadca625402e98815d
l2tp: protect tunnel->del_work by ref_count

[ Upstream commit 06a15f51cf3618e32a73871ee6a547ef7fd902b5 ]

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

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/l2tp/l2tp_core.c