mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
RDMA/irdma: fix error message in irdma_modify_qp_roce()
[ Upstream commit9f0eafe86e
] 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:b48c24c2d7
("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>
This commit is contained in:
parent
0d50ae281a
commit
b15dd2aa79
|
@ -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) {
|
if (attr->max_dest_rd_atomic > dev->hw_attrs.max_hw_ird) {
|
||||||
ibdev_err(&iwdev->ibdev,
|
ibdev_err(&iwdev->ibdev,
|
||||||
"rd_atomic = %d, above max_hw_ird=%d\n",
|
"rd_atomic = %d, above max_hw_ird=%d\n",
|
||||||
attr->max_rd_atomic,
|
attr->max_dest_rd_atomic,
|
||||||
dev->hw_attrs.max_hw_ird);
|
dev->hw_attrs.max_hw_ird);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user