linux/drivers/infiniband
Parav Pandit 131be26750 IB/cm: Avoid a loop when device has 255 ports
When RDMA device has 255 ports, loop iterator i overflows.  Due to which
cm_add_one() port iterator loops infinitely.  Use core provided port
iterator to avoid the infinite loop.

Fixes: a977049dac ("[PATCH] IB: Add the kernel CM implementation")
Link: https://lore.kernel.org/r/20210127150010.1876121-9-leon@kernel.org
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-02-02 15:10:31 -04:00
..
core IB/cm: Avoid a loop when device has 255 ports 2021-02-02 15:10:31 -04:00
hw IB/mlx5: Return appropriate error code instead of ENOMEM 2021-02-02 13:21:18 -04:00
sw RDMA/sw/rdmavt/qp: Fix kernel-doc formatting problem 2021-01-28 15:42:27 -04:00
ulp IB/iser: Simplify prot_caps setting 2021-01-19 20:02:07 -04:00
Kconfig RDMA/umem: Support importing dma-buf as user memory region 2021-01-20 16:07:52 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00