Commit 2f8cfcc4 authored by Mordechay Goodstein's avatar Mordechay Goodstein Committed by Luca Coelho
Browse files

iwlwifi: remove all queue resources before free



Currently calling iwl_txq_dyn_free only deletes the queue memory/DMA
but any active timers are not dealt with.

Signed-off-by: default avatarMordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231351.69231238667c.I04c6d012d9244a73261685f8fc797a26e5c961d6@changeid


Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 3f79e541
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1311,11 +1311,7 @@ void iwl_txq_dyn_free(struct iwl_trans *trans, int queue)
		return;
	}

	iwl_txq_gen2_unmap(trans, queue);

	iwl_txq_gen2_free_memory(trans, trans->txqs.txq[queue]);

	trans->txqs.txq[queue] = NULL;
	iwl_txq_gen2_free(trans, queue);

	IWL_DEBUG_TX_QUEUES(trans, "Deactivate queue %d\n", queue);
}