diff options
author | Kuniyuki Iwashima | 2022-04-20 10:58:51 +0900 |
---|---|---|
committer | David S. Miller | 2022-04-22 12:47:50 +0100 |
commit | 81ee0eb6c0fe34490ed92667538197d9295e899e (patch) | |
tree | ecd21aa4fc72c17f4fbf6074a2f6f036b66018c2 /net/ipv6 | |
parent | 89e9c7280075f6733b22dd0740daeddeb1256ebf (diff) |
ipv6: Use ipv6_only_sock() helper in condition.
This patch replaces some sk_ipv6only tests with ipv6_only_sock().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-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 6595a78672c8..70564ddccc46 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -318,7 +318,7 @@ static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, /* Binding to v4-mapped address on a v6-only socket * makes no sense */ - if (sk->sk_ipv6only) { + if (ipv6_only_sock(sk)) { err = -EINVAL; goto out; } |