PCI: endpoint: Fix missing destroy_workqueue()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 31 Mar 2021 08:40:12 +0000 (16:40 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 13 Apr 2021 10:43:49 +0000 (11:43 +0100)
commitacaef7981a218813e3617edb9c01837808de063c
treef30cfa389136cc03116ddfb253a433ce1fc14bc1
parent80c253bd7ffbb40ae550c8ae5bed9126b8f99f96
PCI: endpoint: Fix missing destroy_workqueue()

Add the missing destroy_workqueue() before return from
pci_epf_test_init() in the error handling case and add
destroy_workqueue() in pci_epf_test_exit().

Link: https://lore.kernel.org/r/20210331084012.2091010-1-yangyingliang@huawei.com
Fixes: 349e7a85b25fa ("PCI: endpoint: functions: Add an EP function to test PCI")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/endpoint/functions/pci-epf-test.c