ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address
authorDavid Ahern <dsahern@gmail.com>
Sat, 5 Jan 2019 00:58:15 +0000 (16:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:38:32 +0000 (09:38 +0100)
commitdbbbd01ea8aef42c26215f6c749955a006b9801b
tree45227fd1ebda901596ef4f5a19332c342fa09d6a
parenteb0e073f07bdb97226681e4e7e41457e72f2f4ae
ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address

[ Upstream commit ec90ad334986fa5856d11dd272f7f22fa86c55c4 ]

Similar to c5ee066333eb ("ipv6: Consider sk_bound_dev_if when binding a
socket to an address"), binding a socket to v4 mapped addresses needs to
consider if the socket is bound to a device.

This problem also exists from the beginning of git history.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/af_inet6.c