From: Dan Carpenter Date: Mon, 10 Sep 2018 08:35:11 +0000 (+0300) Subject: RDMA/hns: Fix an error code in hns_roce_v2_init_eq_table() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f1a315420e79fe5c077fa119db9439ffabd2cda2;p=openwrt%2Fstaging%2Fblogic.git RDMA/hns: Fix an error code in hns_roce_v2_init_eq_table() The error code isn't set on this path. Signed-off-by: Dan Carpenter Signed-off-by: Jason Gunthorpe --- 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; }