diff options
author | Israel Rukshin <israelr@mellanox.com> | 2019-05-15 06:49:29 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-21 14:01:06 -0400 |
commit | f73e4076426b3494269e46fd5cf9d89ff63a8598 (patch) | |
tree | 872baf5d504ab17e2a29f73c6a0ba89a657e6269 | |
parent | 2d465a165aed9d15c4511de154009164d8933141 (diff) |
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 <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/core/rw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/rw.c b/drivers/infiniband/core/rw.c index e763e42dce05..deeaf2b4b273 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) | |||
731 | IB_MR_TYPE_SIGNATURE, 2); | 731 | IB_MR_TYPE_SIGNATURE, 2); |
732 | if (ret) { | 732 | if (ret) { |
733 | pr_err("%s: failed to allocated %d SIG MRs\n", | 733 | pr_err("%s: failed to allocated %d SIG MRs\n", |
734 | __func__, nr_mrs); | 734 | __func__, nr_sig_mrs); |
735 | goto out_free_rdma_mrs; | 735 | goto out_free_rdma_mrs; |
736 | } | 736 | } |
737 | } | 737 | } |