RDMA/rw: Print the correct number of sig MRs
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 15 May 2019 10:49:29 +0000 (13:49 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:01:06 +0000 (15:01 -0300)
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>
drivers/infiniband/core/rw.c

index e763e42..deeaf2b 100644 (file)
@@ -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;
                }
        }