diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-11-16 23:01:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-18 14:42:54 +0300 |
commit | 6fe1e52490a91cb23f6b3aafc93e7c5beb99f862 (patch) | |
tree | da4823cfde9a2407af943aea8cd448be20997919 /net/sctp/socket.c | |
parent | 26943aefa8704ca7871c34a2d1b2b2a418372666 (diff) | |
download | linux-6fe1e52490a91cb23f6b3aafc93e7c5beb99f862.tar.xz |
sctp: check ipv6 addr with sk_bound_dev if set
When binding to an ipv6 address, it calls ipv6_chk_addr() to check if
this address is on any dev. If a socket binds to a l3mdev but no dev
is passed to do this check, all l3mdev and slaves will be skipped and
the check will fail.
This patch is to pass the bound_dev to make sure the devices under the
same l3mdev can be returned in ipv6_chk_addr(). When the bound_dev is
not a l3mdev or l3slave, l3mdev_master_dev_rcu() will return NULL in
__ipv6_chk_addr_and_flags(), it will keep compitable with before when
NULL dev was passed.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
0 files changed, 0 insertions, 0 deletions