diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-29 14:57:56 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-11-09 03:34:25 +0200 |
commit | 424342ff0e033f5965a446fc6e37aba2c9cee248 (patch) | |
tree | 5fc89547fadd2bfbeb571f99f00be7512ec381c6 /drivers/net/wireless/marvell/mwifiex/cfg80211.c | |
parent | 3d8bd85c2c9e47ed2c82348aa5b6029ed48376ae (diff) | |
download | blackbird-op-linux-424342ff0e033f5965a446fc6e37aba2c9cee248.tar.gz blackbird-op-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/mwifiex/cfg80211.c')
-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); } |