Skip to content

Commit bee024d

Browse files
Guoqing Jiangrleon
authored andcommitted
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: 303ae1c ("rdma/siw: application interface") Signed-off-by: Guoqing Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Bernard Metzler <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent b056327 commit bee024d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/sw/siw/siw_verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle,
14941494

14951495
if (pbl->max_buf < num_sle) {
14961496
siw_dbg_mem(mem, "too many SGE's: %d > %d\n",
1497-
mem->pbl->max_buf, num_sle);
1497+
num_sle, pbl->max_buf);
14981498
return -ENOMEM;
14991499
}
15001500
for_each_sg(sl, slp, num_sle, i) {

0 commit comments

Comments
 (0)