net: cxgb3: add missed destroy_workqueue in cxgb3 probe failure
Subsystems (2)
Quoted 1 line
Add the missed calls to fix it.
You propose to add only a single function call.
…
Review static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) · line 3412
Quoted 8 lines
+++
b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c(quoted diff) +1
-0@@ -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