tcp: sk->sk_bound_dev_if once in inet_request_bound_dev_if()
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:55:43 +0000 (11:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:31:06 +0000 (10:31 +0100)
commitfdb5fd7f736ec7ae9fb36d2842ea6d9ebc4e7269
treead8052c22224615c0aca573e509d68963ded6b48
parenta20ea298071f46effa3aaf965bf9bb34c901db3f
tcp: sk->sk_bound_dev_if once in inet_request_bound_dev_if()

inet_request_bound_dev_if() reads sk->sk_bound_dev_if twice
while listener socket is not locked.

Another cpu could change this field under us.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h