diff mbox series

[5/7] RDMA/rw: Print the correct number of sig MRs

Message ID 1557917371-8777-6-git-send-email-maxg@mellanox.com (mailing list archive)
State Mainlined
Commit f73e4076426b3494269e46fd5cf9d89ff63a8598
Delegated to: Jason Gunthorpe
Headers show
Series iser/isert/rw-api cleanups | expand

Commit Message

Max Gurtovoy May 15, 2019, 10:49 a.m. UTC
From: Israel Rukshin <israelr@mellanox.com>

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>
---
 drivers/infiniband/core/rw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)
 				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;
 		}
 	}