On Fri, Apr 3, 2020 at 4:31 AM Luca Coelho <luca@xxxxxxxxx> wrote: > > From: Johannes Berg <johannes.berg@xxxxxxxxx> I sent Johannes part of this fix weeks ago and heard nothing back. I am far from a glory hound but something is wrong with this list if fixes are sat on for weeks and then the fix shows up with any acknowledgment lost. At minimum a note saying that a fix existed and would be merged shortly would have been nice. Mark > > The function iwl_mvm_remove_inactive_tids() returns bool, so we > should just check "if (ret)", not "if (ret >= 0)" (which would > do nothing useful here). We obviously therefore cannot use the > return value of the function for the free_queue, we need to use > the queue (i) we're currently dealing with instead. > > Cc: stable@xxxxxxxxxxxxxxx # v5.4+ > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx> > --- > drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > index 251d6fbb1da5..56ae72debb96 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > @@ -1169,9 +1169,9 @@ static int iwl_mvm_inactivity_check(struct iwl_mvm *mvm, u8 alloc_for_sta) > inactive_tid_bitmap, > &unshare_queues, > &changetid_queues); > - if (ret >= 0 && free_queue < 0) { > + if (ret && free_queue < 0) { > queue_owner = sta; > - free_queue = ret; > + free_queue = i; > } > /* only unlock sta lock - we still need the queue info lock */ > spin_unlock_bh(&mvmsta->lock); > -- > 2.25.1 >