From: Larry Finger Date: Fri, 23 Sep 2011 03:59:02 +0000 (-0500) Subject: rtlwifi: rtl8192cu: Fix unitialized struct X-Git-Tag: v3.0.5~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc54ab32355ef870a14787d9ad7d5e0459b7007a;p=karo-tx-linux.git rtlwifi: rtl8192cu: Fix unitialized struct commit 831d85471e761e190c3c8979b37540d699ae5812 upstream. Driver rtl8192cu assigns a new struct rtl_tcb_desc object, but fails to clear it. Signed-off-by: Larry Finger Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index a9367eba1ea7..e4272b97829e 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c @@ -861,6 +861,7 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb, u8 tid = 0; u16 seq_number = 0; + memset(&tcb_desc, 0, sizeof(struct rtl_tcb_desc)); if (ieee80211_is_auth(fc)) { RT_TRACE(rtlpriv, COMP_SEND, DBG_DMESG, ("MAC80211_LINKING\n")); rtl_ips_nic_on(hw);