iwlwifi: mvm: fix reserved txq freeing
authorLiad Kaufman <liad.kaufman@intel.com>
Thu, 22 Sep 2016 12:14:08 +0000 (15:14 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Oct 2016 08:30:59 +0000 (11:30 +0300)
commit56214749e0b46eeac6795551f187c0f9443918f2
treee5cf8a2a1f7672fd1571808a14142010a1ef59f8
parent341ca402e42b3c4a8b34341a35f82ff9f7bf8664
iwlwifi: mvm: fix reserved txq freeing

If a TXQ's marking as a reserved queue is removed,
when removing the STA the driver might try to access
out of bounds memory. Make sure the reserved queue
is freed only if it is still reserved.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c