l2tp: use add READ_ONCE() to fetch sk->sk_bound_dev_if
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:55:48 +0000 (11:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:31:06 +0000 (10:31 +0100)
commitff0094030f146b44eba0da2d3f9dbddaa28ee3c0
tree65668e7cd2edfcc5865a776e9e32fd5ebd148c0f
parent70f87de9fa0d454c5c176876fe5d5f6a7bb1fe9d
l2tp: use add READ_ONCE() to fetch sk->sk_bound_dev_if

Use READ_ONCE() in paths not holding the socket lock.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c