projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tcp: Fix bind() regression for v4-mapped-v6 wildcard address.
[platform/kernel/linux-rpi.git]
/
net
/
ipv4
/
inet_hashtables.c
diff --git
a/net/ipv4/inet_hashtables.c
b/net/ipv4/inet_hashtables.c
index
5c54f28
..
a58b040
100644
(file)
--- a/
net/ipv4/inet_hashtables.c
+++ b/
net/ipv4/inet_hashtables.c
@@
-839,7
+839,8
@@
bool inet_bind2_bucket_match_addr_any(const struct inet_bind2_bucket *tb, const
#if IS_ENABLED(CONFIG_IPV6)
if (sk->sk_family != tb->family) {
if (sk->sk_family == AF_INET)
- return ipv6_addr_any(&tb->v6_rcv_saddr);
+ return ipv6_addr_any(&tb->v6_rcv_saddr) ||
+ ipv6_addr_v4mapped_any(&tb->v6_rcv_saddr);
return false;
}