Commit 273a5768 authored by Meenakshi Venkataraman's avatar Meenakshi Venkataraman Committed by Johannes Berg
Browse files

iwlwifi: clean up properly when registration with mac80211 fails



If registration with mac80211 fails, stop the thermal
throttling and testmode work that were previously started.

Signed-off-by: default avatarMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 1c8e11e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1473,6 +1473,9 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
	return op_mode;

out_destroy_workqueue:
	iwl_tt_exit(priv);
	iwl_testmode_free(priv);
	iwl_cancel_deferred_work(priv);
	destroy_workqueue(priv->workqueue);
	priv->workqueue = NULL;
	iwl_uninit_drv(priv);