[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201028091549.136349-1-miaoqinglang@huawei.com>
Date: Wed, 28 Oct 2020 17:15:49 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Kishon Vijay Abraham I <kishon@...com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Bjorn Helgaas <bhelgaas@...gle.com>
CC: <linux-pci@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH] PCI: functions/pci-epf-test: fix missing destroy_workqueue() on error in pci_epf_test_init
Add the missing destroy_workqueue() before return from
pci_epf_test_init() in the error handling case.
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
drivers/pci/endpoint/functions/pci-epf-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
index e4e51d884..6854f2525 100644
--- a/drivers/pci/endpoint/functions/pci-epf-test.c
+++ b/drivers/pci/endpoint/functions/pci-epf-test.c
@@ -918,6 +918,7 @@ static int __init pci_epf_test_init(void)
ret = pci_epf_register_driver(&test_driver);
if (ret) {
pr_err("Failed to register pci epf test driver --> %d\n", ret);
+ destroy_workqueue(kpcitest_workqueue);
return ret;
}
--
2.23.0
Powered by blists - more mailing lists