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

Commit 563b67c5 authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Doug Ledford
Browse files

IB/srp: Convert to ib_alloc_mr

parent a89be2cc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -378,7 +378,8 @@ static struct srp_fr_pool *srp_create_fr_pool(struct ib_device *device,
	INIT_LIST_HEAD(&pool->free_list);
	INIT_LIST_HEAD(&pool->free_list);


	for (i = 0, d = &pool->desc[0]; i < pool->size; i++, d++) {
	for (i = 0, d = &pool->desc[0]; i < pool->size; i++, d++) {
		mr = ib_alloc_fast_reg_mr(pd, max_page_list_len);
		mr = ib_alloc_mr(pd, IB_MR_TYPE_MEM_REG,
				 max_page_list_len);
		if (IS_ERR(mr)) {
		if (IS_ERR(mr)) {
			ret = PTR_ERR(mr);
			ret = PTR_ERR(mr);
			goto destroy_pool;
			goto destroy_pool;