diff options
author | 2020-10-28 17:15:52 +0800 | |
---|---|---|
committer | 2020-11-06 11:02:53 +0100 | |
commit | d1e7550ad081fa5e9260f636dd51e1c496e0fd5f (patch) | |
tree | a52258516792c7700be3e8c224b68b9f0147349b /drivers/staging/ks7010 | |
parent | staging/wlan-ng: Fix line alignment (diff) | |
download | linux-d1e7550ad081fa5e9260f636dd51e1c496e0fd5f.tar.gz linux-d1e7550ad081fa5e9260f636dd51e1c496e0fd5f.tar.bz2 linux-d1e7550ad081fa5e9260f636dd51e1c496e0fd5f.zip |
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>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r-- | drivers/staging/ks7010/ks7010_sdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 78dc8beeae98..cbc0032c1604 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -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: |