linux/drivers/infiniband/ulp
Honggang LI ff552378e8 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:14:37 +01:00
..
ipoib IB/ipoib: Ignore L3 master device 2025-11-13 15:34:27 -05:00
iser IB/iser: Remove unused declaration in header file 2024-09-10 16:41:03 +03:00
isert IB/isert: remove the handling of last WQE reached event 2024-06-26 10:53:29 -03:00
opa_vnic IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
rtrs RDMA/rtrs: Fix clt_path::max_pages_per_mr calculation 2026-01-08 10:14:37 +01:00
srp RDMA/srp: Fix error handling in srp_add_port 2025-02-08 09:57:40 +01:00
srpt RDMA/srpt: Make slab cache names unique 2024-10-11 14:07:33 -03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00