diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-09-22 22:59:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-26 14:55:50 -0400 |
commit | 831d85471e761e190c3c8979b37540d699ae5812 (patch) | |
tree | 6185a3e4e14ee210367aabf4ea473dad131612e8 /drivers | |
parent | 6c80c39d9a6986a566c30d797aae37bfb697eea3 (diff) | |
download | linux-stable-831d85471e761e190c3c8979b37540d699ae5812.tar.gz linux-stable-831d85471e761e190c3c8979b37540d699ae5812.tar.bz2 linux-stable-831d85471e761e190c3c8979b37540d699ae5812.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rtlwifi/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index 8b1cef0ffde6..4bf3cf457ef0 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c @@ -863,6 +863,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); |