Messages in this thread | | | Subject | Re: [PATCH] net: cxgb3: add missed destroy_workqueue in cxgb3 probe failure | From | Markus Elfring <> | Date | Fri, 17 Jul 2020 21:18:38 +0200 |
| |
> 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
| |