aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-29 14:57:56 +0000
committerKalle Valo <kvalo@codeaurora.org>2016-11-09 03:34:25 +0200
commit424342ff0e033f5965a446fc6e37aba2c9cee248 (patch)
tree5fc89547fadd2bfbeb571f99f00be7512ec381c6 /drivers/net/wireless/marvell
parentmwifiex: fix p2p device doesn't find in scan problem (diff)
downloadlinux-dev-424342ff0e033f5965a446fc6e37aba2c9cee248.tar.xz
linux-dev-424342ff0e033f5965a446fc6e37aba2c9cee248.zip
mwifiex: fix missing destroy_workqueue() on error in mwifiex_add_virtual_intf()
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>
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/cfg80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index d9f54451d0c3..c26469a5a5f3 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -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);
}