diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2023-08-21 21:32:54 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-08-22 17:05:12 +0300 |
commit | bee024d20451e4ce04ea30099cad09f7f75d288b (patch) | |
tree | defb2cf17854f0e0ca60fafa8d1b9f624e977cbb /drivers/infiniband | |
parent | b056327bee09e6b86683d3f709a438ccd6031d72 (diff) | |
download | linux-bee024d20451e4ce04ea30099cad09f7f75d288b.tar.gz linux-bee024d20451e4ce04ea30099cad09f7f75d288b.tar.bz2 linux-bee024d20451e4ce04ea30099cad09f7f75d288b.zip |
RDMA/siw: Correct wrong debug message
We need to print num_sle first then pbl->max_buf per the condition.
Also replace mem->pbl with pbl while at it.
Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Link: https://lore.kernel.org/r/20230821133255.31111-3-guoqing.jiang@linux.dev
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/sw/siw/siw_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/siw/siw_verbs.c b/drivers/infiniband/sw/siw/siw_verbs.c index fadfa70853f3..fdbef3254e30 100644 --- a/drivers/infiniband/sw/siw/siw_verbs.c +++ b/drivers/infiniband/sw/siw/siw_verbs.c @@ -1494,7 +1494,7 @@ int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle, if (pbl->max_buf < num_sle) { siw_dbg_mem(mem, "too many SGE's: %d > %d\n", - mem->pbl->max_buf, num_sle); + num_sle, pbl->max_buf); return -ENOMEM; } for_each_sg(sl, slp, num_sle, i) { |