]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit32a2c2443d3a23c7e9108d00d02862aeffeaf292
treed65f62cc489abd3faeb4c904796fbcb717c21d74
parent29c77df5a09603ff3edbf7558736ab50c049d173
iwlwifi: pcie: don't crash on invalid RX interrupt

BugLink: https://bugs.launchpad.net/bugs/1838700
[ Upstream commit 30f24eabab8cd801064c5c37589d803cb4341929 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c