Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f73e4076 authored by Israel Rukshin's avatar Israel Rukshin Committed by Jason Gunthorpe
Browse files

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: default avatarIsrael Rukshin <israelr@mellanox.com>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 2d465a16
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -731,7 +731,7 @@ int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr)
				IB_MR_TYPE_SIGNATURE, 2);
				IB_MR_TYPE_SIGNATURE, 2);
		if (ret) {
		if (ret) {
			pr_err("%s: failed to allocated %d SIG MRs\n",
			pr_err("%s: failed to allocated %d SIG MRs\n",
				__func__, nr_mrs);
				__func__, nr_sig_mrs);
			goto out_free_rdma_mrs;
			goto out_free_rdma_mrs;
		}
		}
	}
	}