linux_dsm_epyc7002/drivers/net/wireless/ath/wil6210
Colin Ian King 23bb9f692b wil6210: fix wil_cid_valid with negative cid values
There are several occasions where a negative cid value is passed
into wil_cid_valid and this is converted into a u8 causing the
range check of cid >= 0 to always succeed.  Fix this by making
the cid argument an int to handle any -ve error value of cid.

An example of this behaviour is in wil_cfg80211_dump_station,
where cid is assigned -ENOENT if the call to wil_find_cid_by_idx
fails, and this -ve value is passed to wil_cid_valid.  I believe
that the conversion of -ENOENT to the u8 value 254 which is
greater than wil->max_assoc_sta causes wil_find_cid_by_idx to
currently work fine, but I think is by luck and not the
intended behaviour.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-09-04 09:04:18 +03:00
..
boot_loader.h wil6210: fix random failure to bring network interface up 2018-01-25 07:32:23 +02:00
cfg80211.c nl80211: Add support for EDMG channels 2019-08-21 11:07:35 +02:00
debug.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
debugfs.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
ethtool.c wil6210: initialize TX and RX enhanced DMA rings 2018-07-02 17:24:19 +03:00
fw_inc.c wil6210: add support for multiple sections in brd file 2019-05-03 08:04:04 +03:00
fw.c wil6210: support Talyn specific board file 2018-07-31 11:01:26 +03:00
fw.h wil6210: add support for multiple sections in brd file 2019-05-03 08:04:04 +03:00
interrupt.c wil6210: fix missed MISC mbox interrupt 2019-05-03 08:04:36 +03:00
Kconfig ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
main.c wil6210: update cid boundary check of wil_find_cid/_by_idx() 2019-06-27 20:50:28 +03:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
netdev.c wil6210: check mid is valid 2019-04-03 15:34:47 +03:00
p2p.c wil6210: rename p2p_wdev_mutex to vif_mutex 2018-02-27 18:50:40 +02:00
pcie_bus.c wil6210: clear FW and ucode log address 2019-06-27 20:50:19 +03:00
pm.c wil6210: check mid is valid 2019-04-03 15:34:47 +03:00
pmc.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
pmc.h wil6210: Add pmc debug mechanism memory management 2015-05-04 20:55:43 +03:00
rx_reorder.c wil6210: Add support for setting RBUFCAP configuration 2019-06-27 20:50:01 +03:00
trace.c
trace.h wil6210: support up to 20 stations in AP mode 2019-02-28 11:24:29 +02:00
txrx_edma.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
txrx_edma.h wil6210: enlarge Tx status ring size 2019-06-27 20:49:43 +03:00
txrx.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
txrx.h wil6210: accessing 802.3 addresses via utility functions 2019-02-28 11:24:39 +02:00
wil6210.h wil6210: fix wil_cid_valid with negative cid values 2019-09-04 09:04:18 +03:00
wil_crash_dump.c wil6210: prevent device memory access while in reset or suspend 2019-04-03 15:34:04 +03:00
wil_platform.c wil6210: support for platform specific crash recovery 2016-01-07 15:00:44 +02:00
wil_platform.h wil6210: add 3-MSI support 2018-07-31 11:00:33 +03:00
wmi.c wil6210: drop old event after wmi_call timeout 2019-06-27 20:51:04 +03:00
wmi.h wil6210: add support for reading multiple RFs temperature via debugfs 2019-06-27 20:50:46 +03:00