Skip to content

Commit 3c6aaf1

Browse files
committed
RDMA/irdma: fix error message in irdma_modify_qp_roce()
JIRA: https://issues.redhat.com/browse/RHEL-87576 commit 9f0eafe Author: Vitaliy Shevtsov <v.shevtsov@maxima.ru> Date: Mon Sep 16 21:58:05 2024 +0500 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 <v.shevtsov@maxima.ru> Link: https://lore.kernel.org/stable/20240916165817.14691-1-v.shevtsov%40maxima.ru Link: https://patch.msgid.link/20240916165817.14691-1-v.shevtsov@maxima.ru Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Kamal Heib <kheib@redhat.com>
1 parent 2a96a5d commit 3c6aaf1

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)