]> git.baikalelectronics.ru Git - 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)
commita38dbce8cf336cc2ce3631fe5fea0e50d7e07f81
tree206e267e308effe16cd623451f3a311cb107b0ea
parent1b2e9331f6a5aefe204a49735d926aa4af3fccbe
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