diff --git a/bes2600/main.c b/bes2600/main.c index ff82f4d..89b5e2d 100644 --- a/bes2600/main.c +++ b/bes2600/main.c @@ -502,6 +502,7 @@ static struct ieee80211_hw *bes2600_init_common(size_t hw_priv_data_len) WLAN_LINK_ID_MAX, bes2600_skb_dtor, hw_priv))) { + destroy_workqueue(hw_priv->workqueue); ieee80211_free_hw(hw); return NULL; } @@ -513,6 +514,7 @@ static struct ieee80211_hw *bes2600_init_common(size_t hw_priv_data_len) for (; i > 0; i--) bes2600_queue_deinit(&hw_priv->tx_queue[i - 1]); bes2600_queue_stats_deinit(&hw_priv->tx_queue_stats); + destroy_workqueue(hw_priv->workqueue); ieee80211_free_hw(hw); return NULL; }