]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iwlwifi: pcie: fix unused txq NULL pointer dereference
authorMordechai Goodstein <mordechay.goodstein@intel.com>
Sun, 11 Jun 2017 15:00:36 +0000 (18:00 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 21 Jul 2017 09:26:37 +0000 (12:26 +0300)
commitf6eac740a9b6f3737a969bad82931633519a1cc5
tree206e267e308effe16cd623451f3a311cb107b0ea
parent0b0f934e92a8eaed2e6c48a50eae6f84661f74f3
iwlwifi: pcie: fix unused txq NULL pointer dereference

Before TVQM, all TX queues were allocated straight at init.
With TVQM, queues are allocated on demand and hence we need
to check if a queue exists before dereferencing it.

Fixes: 66128fa08806 ("iwlwifi: move to TVQM mode")
Signed-off-by: Mordechai Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c