iwlwifi: mvm: handle iwl_mvm_tvqm_enable_txq() error return
authorJohannes Berg <johannes.berg@intel.com>
Sat, 19 Oct 2019 10:03:29 +0000 (13:03 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 23 Oct 2019 10:31:33 +0000 (13:31 +0300)
commit91cf5dede57f9c4030c1378745d612eec2075652
tree5f15163d1b519ebd5c121c8cde8b8f9aa00b5d2f
parente55890150a961944e861a46efc8599f80f25de76
iwlwifi: mvm: handle iwl_mvm_tvqm_enable_txq() error return

iwl_mvm_tvqm_enable_txq() can return an error, notably if unable
to allocate memory for the queue. Handle this error throughout,
avoiding storing the invalid value into a u16 which later leads
to a disable of an invalid queue ("queue 65524 not used", where
65524 is just -ENOMEM in a u16).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c