diff options
author | Vitaliy Shevtsov <v.shevtsov@maxima.ru> | 2024-09-16 18:58:05 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-09-16 19:27:04 +0200 |
commit | 9f0eafe86ea0a589676209d0cff1a1ed49a037d3 (patch) | |
tree | bcfb0bc7f3cd6d43454ac59c35beb0f371f77869 /drivers/infiniband/hw | |
parent | RDMA/cxgb4: Added NULL check for lookup_atid (diff) | |
download | linux-9f0eafe86ea0a589676209d0cff1a1ed49a037d3.tar.xz linux-9f0eafe86ea0a589676209d0cff1a1ed49a037d3.zip |
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: b48c24c2d710 ("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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/irdma/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 6a107decb704..eeb932e58730 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -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; } |