Commit abc599ef authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Luca Coelho
Browse files

iwlwifi: pcie: don't crash when rx queues aren't allocated in interrupt

parent 781b9ae4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1658,6 +1658,9 @@ irqreturn_t iwl_pcie_irq_rx_msix_handler(int irq, void *dev_id)
	if (WARN_ON(entry->entry >= trans->num_rx_queues))
		return IRQ_NONE;

	if (WARN_ONCE(!rxq, "Got MSI-X interrupt before we have Rx queues"))
		return IRQ_NONE;

	lock_map_acquire(&trans->sync_cmd_lockdep_map);

	local_bh_disable();