diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-29 16:57:56 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-11-09 02:34:25 +0100 |
commit | 424342ff0e033f5965a446fc6e37aba2c9cee248 (patch) | |
tree | 5fc89547fadd2bfbeb571f99f00be7512ec381c6 /drivers/net/wireless/marvell | |
parent | mwifiex: fix p2p device doesn't find in scan problem (diff) | |
download | linux-424342ff0e033f5965a446fc6e37aba2c9cee248.tar.xz linux-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.c | 2 |
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); } |