Commit e48caab2 authored by Cong Ding's avatar Cong Ding Committed by John W. Linville

net: wireless/rtlwifi: fix uninitialized variable issue

The use of variable packet_beacon might be uninitialized in the two files,
which is same as this patch:
https://patchwork.kernel.org/patch/2006711/Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 12b66398
...@@ -488,7 +488,7 @@ static void _rtl92ce_translate_rx_signal_stuff(struct ieee80211_hw *hw, ...@@ -488,7 +488,7 @@ static void _rtl92ce_translate_rx_signal_stuff(struct ieee80211_hw *hw,
u8 *praddr; u8 *praddr;
__le16 fc; __le16 fc;
u16 type, c_fc; u16 type, c_fc;
bool packet_matchbssid, packet_toself, packet_beacon; bool packet_matchbssid, packet_toself, packet_beacon = false;
tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift;
......
...@@ -1084,7 +1084,7 @@ void rtl92c_translate_rx_signal_stuff(struct ieee80211_hw *hw, ...@@ -1084,7 +1084,7 @@ void rtl92c_translate_rx_signal_stuff(struct ieee80211_hw *hw,
u8 *praddr; u8 *praddr;
__le16 fc; __le16 fc;
u16 type, cpu_fc; u16 type, cpu_fc;
bool packet_matchbssid, packet_toself, packet_beacon; bool packet_matchbssid, packet_toself, packet_beacon = false;
tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift; tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift;
hdr = (struct ieee80211_hdr *)tmp_buf; hdr = (struct ieee80211_hdr *)tmp_buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment