diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index fa789c082c3e5ad4ff63e8ea3837ac5df725fdfb..52b5a2797c0c6e85e0cd2f8203616b536b86d178 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c @@ -909,7 +909,7 @@ int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb) { struct l2tp_tunnel *tunnel; - tunnel = l2tp_tunnel(sk); + tunnel = rcu_dereference_sk_user_data(sk); if (tunnel == NULL) goto pass_up;