Skip to content

Commit 9f0eafe

Browse files
Vitaliy Shevtsovrleon
authored andcommitted
RDMA/irdma: fix error message in irdma_modify_qp_roce()
Use a correct field max_dest_rd_atomic instead of max_rd_atomic for the error output. Found by Linux Verification Center (linuxtesting.org) with Svace. Fixes: b48c24c ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Vitaliy Shevtsov <[email protected]> Link: https://lore.kernel.org/stable/20240916165817.14691-1-v.shevtsov%40maxima.ru Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent e766e6a commit 9f0eafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
13471347
if (attr->max_dest_rd_atomic > dev->hw_attrs.max_hw_ird) {
13481348
ibdev_err(&iwdev->ibdev,
13491349
"rd_atomic = %d, above max_hw_ird=%d\n",
1350-
attr->max_rd_atomic,
1350+
attr->max_dest_rd_atomic,
13511351
dev->hw_attrs.max_hw_ird);
13521352
return -EINVAL;
13531353
}

0 commit comments

Comments
 (0)