diff mbox series

RDMA/irdma: fix error message in irdma_modify_qp_roce()

Message ID 20240916165817.14691-1-v.shevtsov@maxima.ru (mailing list archive)
State Accepted
Headers show
Series RDMA/irdma: fix error message in irdma_modify_qp_roce() | expand

Commit Message

Vitaliy Shevtsov Sept. 16, 2024, 4:58 p.m. UTC
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: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Vitaliy Shevtsov <v.shevtsov@maxima.ru>
---
 drivers/infiniband/hw/irdma/verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Sept. 16, 2024, 5:27 p.m. UTC | #1
On Mon, 16 Sep 2024 21:58:05 +0500, Vitaliy Shevtsov wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] RDMA/irdma: fix error message in irdma_modify_qp_roce()
      https://git.kernel.org/rdma/rdma/c/9f0eafe86ea0a5

Best regards,
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c
index 76c5f461faca..baa3dff6faab 100644
--- a/drivers/infiniband/hw/irdma/verbs.c
+++ b/drivers/infiniband/hw/irdma/verbs.c
@@ -1324,7 +1324,7 @@  int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
 		if (attr->max_dest_rd_atomic > dev->hw_attrs.max_hw_ird) {
 			ibdev_err(&iwdev->ibdev,
 				  "rd_atomic = %d, above max_hw_ird=%d\n",
-				   attr->max_rd_atomic,
+				   attr->max_dest_rd_atomic,
 				   dev->hw_attrs.max_hw_ird);
 			return -EINVAL;
 		}