Message ID | 64bd5a94be8b52f4c401737333246939367cdaec.1718877398.git.jchapman@katalix.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c37e0138ca5f3be6b69c3020470aecb94eb5d773 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | l2tp: don't use the tunnel socket's sk_user_data in datapath | expand |
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 2c6378a9f384..cbc5de1373cd 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c @@ -1030,12 +1030,6 @@ EXPORT_SYMBOL_GPL(l2tp_udp_encap_recv); static void l2tp_udp_encap_err_recv(struct sock *sk, struct sk_buff *skb, int err, __be16 port, u32 info, u8 *payload) { - struct l2tp_tunnel *tunnel; - - tunnel = rcu_dereference_sk_user_data(sk); - if (!tunnel || tunnel->fd < 0) - return; - sk->sk_err = err; sk_error_report(sk);