Patchwork [3.11.y.z,extended,stable] Patch "rtlwifi: rtl8188ee: initialize packet_beacon" has been added to staging queue

mail settings
Submitter Luis Henriques
Date May 14, 2014, 2:56 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/348840/
State New
Headers show


Luis Henriques - May 14, 2014, 2:56 p.m.
This is a note to let you know that I have just added a patch titled

    rtlwifi: rtl8188ee: initialize packet_beacon

to the linux-3.11.y-queue branch of the 3.11.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.11.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.11.y.z tree, see



From 00053e67fd1df46de5e904c0c5c5f00f83f11944 Mon Sep 17 00:00:00 2001
From: Colin Ian King <>
Date: Mon, 21 Apr 2014 17:38:44 +0100
Subject: rtlwifi: rtl8188ee: initialize packet_beacon

commit 328e203fc35f0b4f6df1c4943f74cf553bcc04f8 upstream.

static code analysis from cppcheck reports:

  (error) Uninitialized variable: packet_beacon

packet_beacon is not initialized and hence packet_beacon
contains garbage from the stack, so set it to false.

Signed-off-by: Colin Ian King <>
Acked-by: Larry Finger <>
Signed-off-by: John W. Linville <>
Signed-off-by: Luis Henriques <>
 drivers/net/wireless/rtlwifi/rtl8188ee/trx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c b/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
index a8871d6..ea4d014 100644
--- a/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
@@ -293,7 +293,7 @@  static void _rtl88ee_translate_rx_signal_stuff(struct ieee80211_hw *hw,
 	u8 *psaddr;
 	__le16 fc;
 	u16 type, ufc;
-	bool match_bssid, packet_toself, packet_beacon, addr;
+	bool match_bssid, packet_toself, packet_beacon = false, addr;

 	tmp_buf = skb->data + pstatus->rx_drvinfo_size + pstatus->rx_bufshift;