iwlwifi: pcie: don't crash on invalid RX interrupt
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Mar 2019 09:31:11 +0000 (10:31 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 29 Apr 2019 15:42:45 +0000 (18:42 +0300)
commit30f24eabab8cd801064c5c37589d803cb4341929
treeb46b87eb4b5dd37832818d0d16d46ffbb6e80164
parentc5bf4fa142297270c84fe5bd899d9a9b659bc5ac
iwlwifi: pcie: don't crash on invalid RX interrupt

If for some reason the device gives us an RX interrupt before we're
ready for it, perhaps during device power-on with misconfigured IRQ
causes mapping or so, we can crash trying to access the queues.

Prevent that by checking that we actually have RXQs and that they
were properly allocated.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c