All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RDMA/hns: Fix an error code in hns_roce_create_srq()
@ 2018-12-17  7:08 Dan Carpenter
  2018-12-17 11:18 ` oulijun
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Dan Carpenter @ 2018-12-17  7:08 UTC (permalink / raw)
  To: kernel-janitors

The function accidentally returns success on this error path.

Fixes: c7bcb13442e1 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 drivers/infiniband/hw/hns/hns_roce_srq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/hw/hns/hns_roce_srq.c b/drivers/infiniband/hw/hns/hns_roce_srq.c
index 463df60094e8..6377e734e28e 100644
--- a/drivers/infiniband/hw/hns/hns_roce_srq.c
+++ b/drivers/infiniband/hw/hns/hns_roce_srq.c
@@ -286,6 +286,7 @@ struct ib_srq *hns_roce_create_srq(struct ib_pd *pd,
 		if (IS_ERR(srq->idx_que.umem)) {
 			dev_err(hr_dev->dev,
 				"ib_umem_get error for index queue\n");
+			ret = PTR_ERR(srq->idx_que.umem);
 			goto err_srq_mtt;
 		}
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-06-25 13:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17  7:08 [PATCH] RDMA/hns: Fix an error code in hns_roce_create_srq() Dan Carpenter
2018-12-17 11:18 ` oulijun
2019-06-08  9:27 ` [PATCH] RDMA/hns: Fix an error code in hns_roce_set_user_sq_size() Dan Carpenter
2019-06-12 17:23 ` Leon Romanovsky
2019-06-13  6:05 ` Dan Carpenter
2019-06-13  6:14 ` oulijun
2019-06-13  6:33 ` Leon Romanovsky
2019-06-13 14:05 ` oulijun
2019-06-25 13:22 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.