Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 424342ff authored by Wei Yongjun's avatar Wei Yongjun Committed by Kalle Valo
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 3d8bd85c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
	}