]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mwifiex: fix missing destroy_workqueue() on error in mwifiex_add_virtual_intf()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 29 Sep 2016 14:57:56 +0000 (14:57 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 Nov 2016 01:34:25 +0000 (03:34 +0200)
Add the missing destroy_workqueue() before return from
mwifiex_add_virtual_intf() in the error handling case.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c

index d9f54451d0c304edf15e6f8ff1685d755cd0f981..c26469a5a5f33bc46cd58afbf0ce9b9058065225 100644 (file)
@@ -3022,6 +3022,8 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
                priv->netdev = NULL;
                memset(&priv->wdev, 0, sizeof(priv->wdev));
                priv->wdev.iftype = NL80211_IFTYPE_UNSPECIFIED;
+               destroy_workqueue(priv->dfs_cac_workqueue);
+               priv->dfs_cac_workqueue = NULL;
                return ERR_PTR(-ENOMEM);
        }