diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-12 18:02:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-15 11:33:47 +0200 |
commit | 1086ca7cce292bb498d7f8f85f4593c9ef4902b7 (patch) | |
tree | 91e02950dc0a70e6057ccc38d136690255ac2139 /net/ipv6/ping.c | |
parent | ipv6: lockless IPV6_AUTOFLOWLABEL implementation (diff) | |
download | linux-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.tar.xz linux-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.zip |
ipv6: lockless IPV6_DONTFRAG implementation
Move np->dontfrag flag to inet->inet_flags to fix data-races.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ping.c')
-rw-r--r-- | net/ipv6/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 5831aaa53d75..4444b61eb23b 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -118,7 +118,7 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) l3mdev_master_ifindex_by_index(sock_net(sk), oif) != sk->sk_bound_dev_if)) return -EINVAL; - ipcm6_init_sk(&ipc6, np); + ipcm6_init_sk(&ipc6, sk); ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); ipc6.sockc.mark = READ_ONCE(sk->sk_mark); |