octeon_ep: add missing destroy_workqueue in octep_init_module
octep_init_module misses destroy_workqueue in error path,
this patch fixes that.
Fixes: 862cd659a6
("octeon_ep: Add driver framework and device initialization")
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ee3398c787
commit
e68372efb9
@ -1149,6 +1149,7 @@ static int __init octep_init_module(void)
|
||||
if (ret < 0) {
|
||||
pr_err("%s: Failed to register PCI driver; err=%d\n",
|
||||
OCTEP_DRV_NAME, ret);
|
||||
destroy_workqueue(octep_wq);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user