]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: avoid crash on restart w/o reserved queues
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Dec 2016 11:03:36 +0000 (12:03 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 23 Jan 2017 10:55:32 +0000 (12:55 +0200)
commit62f1c7be63582a23d599cafa9892140bfa6beec9
tree1a882bcf6f280aff6a263198782ff3e647fd5c42
parentad67a9677cfabd5f2bc14a5bb2d1e50746aaa7bb
iwlwifi: mvm: avoid crash on restart w/o reserved queues

When the firmware restarts in a situation in which any station
has no queue reserved anymore because that queue was used, the
code will crash trying to access the queue_info array at the
offset 255, which is far too big. Fix this by checking that a
queue is actually reserved before writing its status.

Fixes: 60db6c7957e6 ("iwlwifi: mvm: re-assign old queues after hw restart in dqa mode")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c