Re: [PATCH] net: cxgb3: add missed destroy_workqueue in cxgb3 probe failure

From: Markus Elfring
Date: Fri Jul 17 2020 - 15:19:16 EST


> Add the missed calls to fix it.

You propose to add only a single function call.


â
> +++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
> @@ -3407,6 +3407,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> out_disable_device:
> pci_disable_device(pdev);
> out:
> + destroy_workqueue(cxgb3_wq);
> return err;
> }

I suggest to adjust also the usage of the label âoutâ accordingly.

Regards,
Markus