Commit e83726b0460f4741c8f10e1488fbcc0a9e5f0b7e
Committed by
David S. Miller
1 parent
612eef4f47
Exists in
master
and in
20 other branches
l2tp: small cleanup
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
net/l2tp/l2tp_ip.c
... | ... | @@ -65,9 +65,7 @@ |
65 | 65 | continue; |
66 | 66 | |
67 | 67 | if ((l2tp->conn_id == tunnel_id) && |
68 | -#ifdef CONFIG_NET_NS | |
69 | - (sk->sk_net == net) && | |
70 | -#endif | |
68 | + net_eq(sock_net(sk), net) && | |
71 | 69 | !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && |
72 | 70 | !(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif)) |
73 | 71 | goto found; |