Message ID | 20180910083511.egoljxb5rr3do6ue@kili.mountain (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | RDMA/hns: Fix an error code in hns_roce_v2_init_eq_table() | expand |
On Mon, Sep 10, 2018 at 11:35:11AM +0300, Dan Carpenter wrote: > The error code isn't set on this path. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Applied to for-next, thanks Jason
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 0218c0f8c2a7..b84bfa48371d 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5125,6 +5125,7 @@ static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev) create_singlethread_workqueue("hns_roce_irq_workqueue"); if (!hr_dev->irq_workq) { dev_err(dev, "Create irq workqueue failed!\n"); + ret = -ENOMEM; goto err_request_irq_fail; }
The error code isn't set on this path. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>