提交 2f8cfcc4 编写于 作者: M Mordechay Goodstein 提交者: Luca Coelho

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: NMordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231351.69231238667c.I04c6d012d9244a73261685f8fc797a26e5c961d6@changeidSigned-off-by: NLuca Coelho <luciano.coelho@intel.com>
上级 3f79e541
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册