Commit 9f0eafe8 authored by Vitaliy Shevtsov's avatar Vitaliy Shevtsov Committed by Leon Romanovsky
Browse files

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: b48c24c2 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: default avatarVitaliy 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: default avatarLeon Romanovsky <leon@kernel.org>
parent e766e6a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1347,7 +1347,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;
		}