linux/drivers/infiniband/ulp
Honggang LI e4ee11c00d RDMA/rtrs: Fix clt_path::max_pages_per_mr calculation
[ Upstream commit 43bd09d5b7 ]

If device max_mr_size bits in the range [mr_page_shift+31:mr_page_shift]
are zero, the `min3` function will set clt_path::max_pages_per_mr to
zero.

`alloc_path_reqs` will pass zero, which is invalid, as the third parameter
to `ib_alloc_mr`.

Fixes: 6a98d71dae ("RDMA/rtrs: client: main functionality")
Signed-off-by: Honggang LI <honggangli@163.com>
Link: https://patch.msgid.link/20251229025617.13241-1-honggangli@163.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-01-08 10:16:52 +01:00
..
ipoib IB/ipoib: Ignore L3 master device 2025-09-18 05:20:48 -04:00
iser IB/iser: Remove unnecessary local variable 2025-06-12 04:28:04 -04:00
isert IB/isert: remove the handling of last WQE reached event 2024-06-26 10:53:29 -03:00
opa_vnic RDMA: Use ethtool string helpers 2024-10-30 11:28:57 +02:00
rtrs RDMA/rtrs: Fix clt_path::max_pages_per_mr calculation 2026-01-08 10:16:52 +01:00
srp scsi: RDMA/srp: Don't set a max_segment_size when virt_boundary_mask is set 2025-06-24 21:20:57 -04:00
srpt RDMA: Use %pe format specifier for error pointers 2025-09-21 07:34:49 -04:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00