iwl4965: do not process non-QOS frames on txq->sched_retry path
authorStanislaw Gruszka <stf_xl@wp.pl>
Tue, 19 Jan 2021 10:06:21 +0000 (11:06 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 14:43:27 +0000 (16:43 +0200)
commit4832bb371c4175ffb506a96accbb08ef2b2466e7
tree89c5ef40af743ddbfb18e8afca9eab2ea5bde451
parentf43fcaef87a3ec6e234a20c8606342f33a8bd61d
iwl4965: do not process non-QOS frames on txq->sched_retry path

We have already WARN_ON(!qc) for non-QOS frame on txq->sched_retry path,
but we continue to process, what makes no sense since tid is not
initialized. Non QOS frame should never happen when aggregation
is enabled on queue, so do not process that.

Patch should fix smatch warning:
drivers/net/wireless/intel/iwlegacy/4965-mac.c:2822 il4965_hdl_tx() error: uninitialized symbol 'tid'.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210119100621.439134-1-stf_xl@wp.pl
drivers/net/wireless/intel/iwlegacy/4965-mac.c