
< 	struct iwl_txq *txq = trans->txqs.txq[txq_id];
---
> 	if (txq_id < 0 || txq_id >= IWL_MAX_TXQ_NUM) {
> 		WARN_ON(1);
> 		return;
> 	}
> 	struct iwl_txq *txq = trans->txqs.txq[txq_id];
