From: Israel Rukshin Date: Wed, 15 May 2019 10:49:29 +0000 (+0300) Subject: RDMA/rw: Print the correct number of sig MRs X-Git-Tag: v5.15~5930^2~183 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f73e4076426b3494269e46fd5cf9d89ff63a8598;p=platform%2Fkernel%2Flinux-starfive.git RDMA/rw: Print the correct number of sig MRs A wrong value was printed in case of sig MR pool initialization failure. Signed-off-by: Israel Rukshin Reviewed-by: Max Gurtovoy Reviewed-by: Christoph Hellwig Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/core/rw.c b/drivers/infiniband/core/rw.c index e763e42..deeaf2b 100644 --- a/drivers/infiniband/core/rw.c +++ b/drivers/infiniband/core/rw.c @@ -731,7 +731,7 @@ int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr) IB_MR_TYPE_SIGNATURE, 2); if (ret) { pr_err("%s: failed to allocated %d SIG MRs\n", - __func__, nr_mrs); + __func__, nr_sig_mrs); goto out_free_rdma_mrs; } }