Skip to content

Commit b15dd2a

Browse files
Vitaliy Shevtsovgregkh
authored andcommitted
RDMA/irdma: fix error message in irdma_modify_qp_roce()
[ Upstream commit 9f0eafe ] 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: Sasha Levin <sashal@kernel.org>
1 parent 0d50ae2 commit b15dd2a

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)