linux-stable/drivers/infiniband
Parav Pandit 4cb8bdaebb IB/cm: Avoid a loop when device has 255 ports
[ Upstream commit 131be26750 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 10:26:32 +01:00
..
core IB/cm: Avoid a loop when device has 255 ports 2021-03-04 10:26:32 +01:00
hw IB/mlx5: Return appropriate error code instead of ENOMEM 2021-03-04 10:26:32 +01:00
sw RDMA/siw: Fix handling of zero-sized Read and Receive Queues. 2021-03-04 10:26:27 +01:00
ulp RDMA/ipoib: Set rtnl_link_ops for ipoib interfaces 2020-10-29 09:57:51 +01:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-24 13:29:05 +01:00
Makefile