OSDN Git Service

RDMA/hns: Fix an error code in hns_roce_v2_init_eq_table()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Sep 2018 08:35:11 +0000 (11:35 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Sep 2018 16:00:23 +0000 (10:00 -0600)
The error code isn't set on this path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index 0218c0f..b84bfa4 100644 (file)
@@ -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;
        }