* [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement
@ 2019-04-16 15:17 Gustavo A. R. Silva
2019-04-24 22:17 ` Gustavo A. R. Silva
2019-04-25 16:56 ` Kalle Valo
0 siblings, 2 replies; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-04-16 15:17 UTC (permalink / raw)
To: Ping-Ke Shih, Kalle Valo, David S. Miller, Larry Finger
Cc: linux-wireless, netdev, linux-kernel, Gustavo A. R. Silva, Kees Cook
Add missing break statement in order to prevent the code from falling
through to case 0x1025, and erroneously setting rtlhal->oem_id to
RT_CID_819X_ACER when rtlefuse->eeprom_svid is equal to 0x10EC and
none of the cases in switch (rtlefuse->eeprom_smid) match.
This bug was found thanks to the ongoing efforts to enable
-Wimplicit-fallthrough.
Fixes: 238ad2ddf34b ("rtlwifi: rtl8723ae: Clean up the hardware info routine")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
Changes in v2:
- Update tag from wireless-drivers to wireless-drivers-next
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
index 6bab162e1bb8..655460f61bbc 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
@@ -1675,6 +1675,7 @@ static void _rtl8723e_read_adapter_info(struct ieee80211_hw *hw,
rtlhal->oem_id = RT_CID_819X_LENOVO;
break;
}
+ break;
case 0x1025:
rtlhal->oem_id = RT_CID_819X_ACER;
break;
--
2.21.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement
2019-04-16 15:17 [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement Gustavo A. R. Silva
@ 2019-04-24 22:17 ` Gustavo A. R. Silva
2019-04-25 9:37 ` Kalle Valo
2019-04-25 16:56 ` Kalle Valo
1 sibling, 1 reply; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-04-24 22:17 UTC (permalink / raw)
To: Ping-Ke Shih, Kalle Valo, David S. Miller, Larry Finger
Cc: linux-wireless, netdev, linux-kernel, Kees Cook
Hi all,
Friendly ping:
Who can take this?
Thanks
--
Gustavo
On 4/16/19 10:17 AM, Gustavo A. R. Silva wrote:
> Add missing break statement in order to prevent the code from falling
> through to case 0x1025, and erroneously setting rtlhal->oem_id to
> RT_CID_819X_ACER when rtlefuse->eeprom_svid is equal to 0x10EC and
> none of the cases in switch (rtlefuse->eeprom_smid) match.
>
> This bug was found thanks to the ongoing efforts to enable
> -Wimplicit-fallthrough.
>
> Fixes: 238ad2ddf34b ("rtlwifi: rtl8723ae: Clean up the hardware info routine")
> Cc: stable@vger.kernel.org
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
> ---
> Changes in v2:
> - Update tag from wireless-drivers to wireless-drivers-next
>
> drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
> index 6bab162e1bb8..655460f61bbc 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
> @@ -1675,6 +1675,7 @@ static void _rtl8723e_read_adapter_info(struct ieee80211_hw *hw,
> rtlhal->oem_id = RT_CID_819X_LENOVO;
> break;
> }
> + break;
> case 0x1025:
> rtlhal->oem_id = RT_CID_819X_ACER;
> break;
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement
2019-04-24 22:17 ` Gustavo A. R. Silva
@ 2019-04-25 9:37 ` Kalle Valo
2019-04-25 14:27 ` Gustavo A. R. Silva
0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2019-04-25 9:37 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Ping-Ke Shih, David S. Miller, Larry Finger, linux-wireless,
netdev, linux-kernel, Kees Cook
"Gustavo A. R. Silva" <gustavo@embeddedor.com> writes:
> Hi all,
>
> Friendly ping:
>
> Who can take this?
It's in my queue.
--
Kalle Valo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement
2019-04-25 9:37 ` Kalle Valo
@ 2019-04-25 14:27 ` Gustavo A. R. Silva
0 siblings, 0 replies; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-04-25 14:27 UTC (permalink / raw)
To: Kalle Valo
Cc: Ping-Ke Shih, David S. Miller, Larry Finger, linux-wireless,
netdev, linux-kernel, Kees Cook
On 4/25/19 4:37 AM, Kalle Valo wrote:
> "Gustavo A. R. Silva" <gustavo@embeddedor.com> writes:
>
>> Hi all,
>>
>> Friendly ping:
>>
>> Who can take this?
>
> It's in my queue.
>
Awesome. :)
Thank you
--
Gustavo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement
2019-04-16 15:17 [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement Gustavo A. R. Silva
2019-04-24 22:17 ` Gustavo A. R. Silva
@ 2019-04-25 16:56 ` Kalle Valo
1 sibling, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-04-25 16:56 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Ping-Ke Shih, David S. Miller, Larry Finger, linux-wireless,
netdev, linux-kernel, Gustavo A. R. Silva, Kees Cook
"Gustavo A. R. Silva" <gustavo@embeddedor.com> wrote:
> Add missing break statement in order to prevent the code from falling
> through to case 0x1025, and erroneously setting rtlhal->oem_id to
> RT_CID_819X_ACER when rtlefuse->eeprom_svid is equal to 0x10EC and
> none of the cases in switch (rtlefuse->eeprom_smid) match.
>
> This bug was found thanks to the ongoing efforts to enable
> -Wimplicit-fallthrough.
>
> Fixes: 238ad2ddf34b ("rtlwifi: rtl8723ae: Clean up the hardware info routine")
> Cc: stable@vger.kernel.org
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Patch applied to wireless-drivers-next.git, thanks.
84242b82d81c rtlwifi: rtl8723ae: Fix missing break in switch statement
--
https://patchwork.kernel.org/patch/10903325/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-25 16:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 15:17 [PATCH v2 wireless-drivers-next] rtlwifi: rtl8723ae: Fix missing break in switch statement Gustavo A. R. Silva
2019-04-24 22:17 ` Gustavo A. R. Silva
2019-04-25 9:37 ` Kalle Valo
2019-04-25 14:27 ` Gustavo A. R. Silva
2019-04-25 16:56 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).