linux/drivers/net/wireless/ath/ath10k
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
..
ahb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
ahb.h
bmi.c ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
bmi.h ath10k: download firmware via diag Copy Engine for QCA6174 and QCA9377. 2018-09-06 19:10:05 +03:00
ce.c ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
ce.h ath10k: introduce CE_ATTR_POLL attribute for polling pipe 2018-09-06 18:55:22 +03:00
core.c ath10k: remove num_peers in hw_params for most targets 2018-10-01 16:55:22 +03:00
core.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
coredump.c ath10k: add memory dump support for QCA9888 and QCA99X0 2018-05-25 12:46:05 +03:00
coredump.h ath10k: add memory dump support QCA9984 2018-03-29 11:54:32 +03:00
debug.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
debug.h ath10k: add debugfs entry to enable extended tx stats 2018-09-06 19:02:34 +03:00
debugfs_sta.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
hif.h ath10k: add support to get target info from hif ops 2018-04-19 18:52:51 +03:00
htc.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
htc.h ath10k: sdio: allocate correct size for RECV_1MORE_BLOCK rx packets 2018-07-02 17:21:37 +03:00
htt_rx.c ath10k: htt_rx: fix signedness bug in ath10k_update_per_peer_tx_stats 2018-10-13 20:23:05 +03:00
htt_tx.c ath10k: htt: High latency TX support 2018-09-06 19:15:17 +03:00
htt.c ath10k: add inlined wrappers for htt tx ops 2018-04-19 19:19:28 +03:00
htt.h ath10k: remove duplicated includes 2018-10-01 16:57:18 +03:00
hw.c ath10k: add missing sanity check on diag download 2018-10-02 07:49:09 +03:00
hw.h ath10k: add bus type check in ath10k_init_hw_params 2018-09-06 19:14:08 +03:00
Kconfig ath10k: allow ATH10K_SNOC with COMPILE_TEST 2018-09-03 19:58:49 +03:00
mac.c ath10k: management tx ack rssi capability check 2018-10-13 20:22:02 +03:00
mac.h ath10k: add waiting htt tx complete before wow enable 2018-09-03 19:57:03 +03:00
Makefile ath10k: platform driver for WCN3990 SNOC WLAN module 2018-04-19 18:51:52 +03:00
p2p.c
p2p.h
pci.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
pci.h ath10k: optimize pci diag mem read & write operations 2018-09-06 19:09:44 +03:00
rx_desc.h ath10k: htt: High latency RX support 2018-09-06 19:15:26 +03:00
sdio.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
sdio.h ath10k: rename HTC_HOST_MAX_MSG_PER_BUNDLE define 2018-06-28 12:56:05 +03:00
snoc.c ath10k: disable napi before resource cleanup to avoid "use after free" 2018-10-01 17:04:34 +03:00
snoc.h ath10k: snoc: stop including pci.h 2018-06-14 18:15:01 +03:00
spectral.c ath10k: fix spectral scan for QCA9984 and QCA9888 chipsets 2018-06-14 18:09:45 +03:00
spectral.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
swap.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
targaddrs.h ath10k: support extended board data download for dual-band QCA9984 2018-09-06 18:54:11 +03:00
testmode_i.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
testmode.c ath10k: re-enable the firmware fallback mechanism for testmode 2018-05-14 16:44:41 +02:00
testmode.h
thermal.c ath10k: update copyright year 2017-12-27 12:22:01 +02:00
thermal.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
trace.c
trace.h ath10k: fix use-after-free in ath10k_wmi_cmd_send_nowait 2018-03-26 18:13:03 +03:00
txrx.c ath10k: DMA related fixes for high latency devices 2018-09-06 19:14:37 +03:00
txrx.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00
usb.c ath10k: add device type enum to ath10k_bus_params 2018-09-06 19:13:58 +03:00
usb.h ath10k: add initial USB support 2017-08-03 14:31:01 +03:00
wmi-ops.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi-tlv.c ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi-tlv.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wmi.c ath10k: add debugfs support to get power save state change of STA 2018-10-01 17:02:08 +03:00
wmi.h ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wow.c ath10k: support NET_DETECT WoWLAN feature 2018-10-13 20:18:02 +03:00
wow.h ath10k: update copyright year 2017-12-27 12:22:01 +02:00