From: Greg Kroah-Hartman Date: Fri, 13 Nov 2020 13:39:58 +0000 (+0100) Subject: 5.9-stable patches X-Git-Tag: v4.4.244~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3a92ff2d061065e8eaa393d24e6ad54d9c9c4ca;p=thirdparty%2Fkernel%2Fstable-queue.git 5.9-stable patches added patches: ath9k_htc-use-appropriate-rs_datalen-type.patch --- diff --git a/queue-5.9/ath9k_htc-use-appropriate-rs_datalen-type.patch b/queue-5.9/ath9k_htc-use-appropriate-rs_datalen-type.patch new file mode 100644 index 00000000000..d44d6668c7e --- /dev/null +++ b/queue-5.9/ath9k_htc-use-appropriate-rs_datalen-type.patch @@ -0,0 +1,40 @@ +From 5024f21c159f8c1668f581fff37140741c0b1ba9 Mon Sep 17 00:00:00 2001 +From: Masashi Honma +Date: Sun, 9 Aug 2020 08:32:58 +0900 +Subject: ath9k_htc: Use appropriate rs_datalen type + +From: Masashi Honma + +commit 5024f21c159f8c1668f581fff37140741c0b1ba9 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 +Fixes: cd486e627e67 ("ath9k_htc: Discard undersized packets") +Signed-off-by: Masashi Honma +Signed-off-by: Kalle Valo +Link: https://lore.kernel.org/r/20200808233258.4596-1-masashi.honma@gmail.com +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c ++++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +@@ -974,7 +974,7 @@ static bool ath9k_rx_prepare(struct ath9 + struct ath_htc_rx_status *rxstatus; + struct ath_rx_status rx_stats; + bool decrypt_error = false; +- __be16 rs_datalen; ++ u16 rs_datalen; + bool is_phyerr; + + if (skb->len < HTC_RX_FRAME_HEADER_SIZE) { diff --git a/queue-5.9/series b/queue-5.9/series index 3431a7e392a..b7ddc51ae17 100644 --- a/queue-5.9/series +++ b/queue-5.9/series @@ -71,3 +71,4 @@ risc-v-fix-the-vdso-symbol-generaton-for-binutils-2..patch usb-apple-mfi-fastcharge-fix-reference-leak-in-apple.patch tpm-efi-don-t-create-binary_bios_measurements-file-f.patch kvm-arm64-arm_smccc_arch_workaround_1-doesn-t-return-smccc_ret_not_required.patch +ath9k_htc-use-appropriate-rs_datalen-type.patch