Skip to content

Commit 4458f39

Browse files
lwfingerIgor
authored andcommitted
rtlwifi: rtl8192cu: Fix unitialized struct
Driver rtl8192cu assigns a new struct rtl_tcb_desc object, but fails to clear it. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Stable <stable@kernel.org> [2.6.39+] Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent a1d2b15 commit 4458f39

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/rtlwifi

1 file changed

+1
-0
lines changed

drivers/net/wireless/rtlwifi/usb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ static void _rtl_usb_tx_preprocess(struct ieee80211_hw *hw, struct sk_buff *skb,
863863
u8 tid = 0;
864864
u16 seq_number = 0;
865865

866+
memset(&tcb_desc, 0, sizeof(struct rtl_tcb_desc));
866867
if (ieee80211_is_auth(fc)) {
867868
RT_TRACE(rtlpriv, COMP_SEND, DBG_DMESG, ("MAC80211_LINKING\n"));
868869
rtl_ips_nic_on(hw);

0 commit comments

Comments
 (0)