diff options
| author | Honggang LI <honggangli@163.com> | 2025-12-29 10:56:17 +0800 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-12-30 05:47:32 -0500 |
| commit | 43bd09d5b750f700499ae8ec45fd41a4c48673e6 (patch) | |
| tree | d9192975b3825949663f3eee00a122cd36fdc067 /tools/lib/python/kdoc/python_version.py | |
| parent | 3c68cf68233e556e0102f45b69f7448908dc1f44 (diff) | |
RDMA/rtrs: Fix clt_path::max_pages_per_mr calculation
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: 6a98d71daea1 ("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>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
