1
0
Fork 0
alistair23-linux/drivers/net/wireless/ath
Masashi Honma b668352c4a ath9k_htc: Use appropriate rs_datalen type
commit 5024f21c15 upstream.

kernel test robot says:
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse: warning: incorrect type in assignment (different base types)
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse:    expected restricted __be16 [usertype] rs_datalen
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:987:20: sparse:    got unsigned short [usertype]
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:988:13: sparse: warning: restricted __be16 degrades to integer
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1001:13: sparse: warning: restricted __be16 degrades to integer

Indeed rs_datalen has host byte order, so modify it's own type.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: cd486e627e ("ath9k_htc: Discard undersized packets")
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200808233258.4596-1-masashi.honma@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-18 19:20:21 +01:00
..
ar5523 ar5523: Add USB ID of SMCWUSBT-G2 wireless adapter 2020-10-01 13:17:29 +02:00
ath5k PCI: Move ASPM declarations to linux/pci.h 2019-08-28 08:28:39 -05:00
ath6kl ath6kl: wmi: prevent a shift wrapping bug in ath6kl_wmi_delete_pstream_cmd() 2020-10-29 09:57:41 +01:00
ath9k ath9k_htc: Use appropriate rs_datalen type 2020-11-18 19:20:21 +01:00
ath10k ath10k: fix VHT NSS calculation when STBC is enabled 2020-11-05 11:43:15 +01:00
carl9170 carl9170: remove P2P_GO support 2020-06-22 09:31:18 +02:00
wcn36xx wcn36xx: Fix reported 802.11n rx_highest rate wcn3660/wcn3680 2020-10-29 09:57:35 +01:00
wil6210 wil6210: fix break that is never reached because of zero'ing of a retry counter 2020-02-24 08:36:22 +01:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
ath.h
debug.c
dfs_pattern_detector.c ath: DFS JP domain W56 fixed pulse type 3 RADAR detection 2019-04-29 17:58:51 +03:00
dfs_pattern_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
dfs_pri_detector.c
dfs_pri_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
hw.c
key.c
main.c
reg.h
regd.c
regd.h ath: drop duplicated define 2019-04-29 17:55:53 +03:00
regd_common.h ath: regd: add extra US coutry codes 2019-02-07 17:02:19 +02:00
spectral_common.h
trace.c
trace.h