diff options
| author | Xin Long <[email protected]> | 2017-02-24 07:18:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-02-27 02:24:05 +0000 |
| commit | 2e3ce5bc2aa938653c3866aa7f4901a1f199b1c8 (patch) | |
| tree | 1d84e80e6378e68fa84d47c171d0fd1d8d504005 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | net/mlx4_en: fix overflow in mlx4_en_init_timestamp() (diff) | |
| download | kernel-2e3ce5bc2aa938653c3866aa7f4901a1f199b1c8.tar.gz kernel-2e3ce5bc2aa938653c3866aa7f4901a1f199b1c8.zip | |
sctp: set sin_port for addr param when checking duplicate address
Commit b8607805dd15 ("sctp: not copying duplicate addrs to the assoc's
bind address list") tried to check for duplicate address before copying
to asoc's bind_addr list from global addr list.
But all the addrs' sin_ports in global addr list are 0 while the addrs'
sin_ports are bp->port in asoc's bind_addr list. It means even if it's
a duplicate address, af->cmp_addr will still return 0 as the their
sin_ports are different.
This patch is to fix it by setting the sin_port for addr param with
bp->port before comparing the addrs.
Fixes: b8607805dd15 ("sctp: not copying duplicate addrs to the assoc's bind address list")
Reported-by: Wei Chen <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
