mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
staging: ks7010: fix missing destroy_workqueue() on error in ks7010_sdio_probe
Add the missing destroy_workqueue() before return from ks7010_sdio_probe in the error handling case. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Link: https://lore.kernel.org/r/20201028091552.136445-1-miaoqinglang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
16b37e7ba6
commit
d1e7550ad0
@ -1029,10 +1029,12 @@ static int ks7010_sdio_probe(struct sdio_func *func,
|
||||
|
||||
ret = register_netdev(priv->net_dev);
|
||||
if (ret)
|
||||
goto err_free_netdev;
|
||||
goto err_destroy_wq;
|
||||
|
||||
return 0;
|
||||
|
||||
err_destroy_wq:
|
||||
destroy_workqueue(priv->wq);
|
||||
err_free_netdev:
|
||||
free_netdev(netdev);
|
||||
err_release_irq:
|
||||
|
Loading…
Reference in New Issue
Block a user