linux/drivers/infiniband/ulp
Honggang LI 2d34cffaf8 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-19 13:09:58 +01:00
..
ipoib RDMA/IPoIB: Fix format truncation compilation errors 2024-06-16 13:39:33 +02:00
iser IB/iser: Prevent invalidating wrong MR 2024-01-25 14:52:45 -08:00
isert Revert "IB/isert: Fix incorrect release of isert connection" 2023-09-19 12:22:48 +02:00
opa_vnic RDMA: Convert comma to semicolon 2021-01-07 13:53:41 -04:00
rtrs RDMA/rtrs: Fix clt_path::max_pages_per_mr calculation 2026-01-19 13:09:58 +01:00
srp RDMA/srp: Do not call scsi_done() from srp_abort() 2023-10-19 23:05:32 +02:00
srpt RDMA/srpt: Do not register event handler until srpt device is fully setup 2024-03-26 18:21:32 -04:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00