diff options
author | Eric Dumazet <edumazet@google.com> | 2023-08-16 08:15:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-16 11:09:17 +0100 |
commit | b1c0356a58577ce0a583e3044bf801877fc0b5de (patch) | |
tree | a5ed4452baf8a48fce1274b747228b842b18f377 /net/ipv6/af_inet6.c | |
parent | 4bd0623f04eef65c0a324000fad73c4d3a677f8e (diff) | |
download | linux-b1c0356a58577ce0a583e3044bf801877fc0b5de.tar.gz linux-b1c0356a58577ce0a583e3044bf801877fc0b5de.tar.bz2 linux-b1c0356a58577ce0a583e3044bf801877fc0b5de.zip |
inet: move inet->is_icsk to inet->inet_flags
We move single bit fields to inet->inet_flags to avoid races.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 8e9d4c1f0e83..d8c56c7aba96 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -200,7 +200,7 @@ lookup_protocol: sk->sk_reuse = SK_CAN_REUSE; inet = inet_sk(sk); - inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0; + inet_assign_bit(IS_ICSK, sk, INET_PROTOSW_ICSK & answer_flags); if (SOCK_RAW == sock->type) { inet->inet_num = protocol; |