Commit d1e7550a authored by Qinglang Miao's avatar Qinglang Miao Committed by Greg Kroah-Hartman
Browse files

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: default avatarQinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20201028091552.136445-1-miaoqinglang@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 16b37e7b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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: