]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: use READ_ONCE() to read sk->sk_bound_dev_if
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:55:45 +0000 (11:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:31:06 +0000 (10:31 +0100)
commitca05779191c899d7da4f6a1839787a91ee84a1cb
treea485df3860e4ef1cebb569b227f0ea7a0509f5b5
parentbd20950391f9101b17046baece245066bf2c117f
dccp: use READ_ONCE() to read sk->sk_bound_dev_if

When reading listener sk->sk_bound_dev_if locklessly,
we must use READ_ONCE().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c
net/dccp/ipv6.c