linux/drivers/net/wireless
Gustavo A. R. Silva 9d9cdbf3f9 ath10k: htt_rx: fix signedness bug in ath10k_update_per_peer_tx_stats
Currently, the error handling for the call to function
ath10k_get_legacy_rate_idx() doesn't work because
*rate_idx* is of type u8 (8 bits, unsigned), which
makes it impossible for it to hold a value less
than 0.

Fix this by changing the type of variable *rate_idx*
to s8 (8 bits, signed).

Addresses-Coverity-ID: 1473914 ("Unsigned compared against 0")
Fixes: 0189dbd71c ("ath10k: get the legacy rate index to update the txrate table")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-13 20:23:05 +03:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath ath10k: htt_rx: fix signedness bug in ath10k_update_per_peer_tx_stats 2018-10-13 20:23:05 +03:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom wireless-drivers-next patches for 4.20 2018-10-02 11:46:29 -07:00
cisco airo: remove unused variables len and dev and clean up formatting 2018-07-31 10:17:19 +03:00
intel wireless-drivers-next patches for 4.20 2018-10-02 11:46:29 -07:00
intersil wireless-drivers-next patches for 4.20 2018-10-02 11:46:29 -07:00
marvell mwifex: free rx_cmd skb in suspended state 2018-08-31 18:46:53 +03:00
mediatek mt76: mt76x2: fix multi-interface beacon configuration 2018-10-01 13:26:21 +02:00
quantenna qtnfmac_pcie: check for correct CHIP ID at pcie probe 2018-10-01 18:40:34 +03:00
ralink rt2800: flush and txstatus rework for rt2800mmio 2018-10-01 18:37:35 +03:00
realtek wireless-drivers-next patches for 4.20 2018-10-02 11:46:29 -07:00
rsi rsi: Remove unnecessary boolean condition 2018-10-01 18:31:10 +03:00
st cw1200: Remove extra parentheses 2018-08-31 18:42:25 +03:00
ti Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
zydas zd1211rw: use irqsave() in USB's complete callback 2018-06-27 19:12:43 +03:00
Kconfig
mac80211_hwsim.c wireless: align to draft 11ax D3.0 2018-09-05 10:09:50 +02:00
mac80211_hwsim.h mac80211_hwsim: add permanent mac address option for new radios 2018-01-31 12:45:35 +01:00
Makefile
ray_cs.c ray_cs: remove redundant pointer 'p' 2018-07-31 10:19:50 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
wl3501_cs.c
wl3501.h