diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-03-17 10:54:04 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-18 20:20:38 +0100 |
commit | 36ef0b473fbf43d5db23eea4616cc1d18cec245f (patch) | |
tree | 7497a50a564a290fc8f554bae831763c555c0000 /drivers/net/wireless/rtlwifi | |
parent | mwifiex: cancel cmd timer and free curr_cmd in shutdown process (diff) | |
download | linux-36ef0b473fbf43d5db23eea4616cc1d18cec245f.tar.xz linux-36ef0b473fbf43d5db23eea4616cc1d18cec245f.zip |
rtlwifi: usb: add missing freeing of skbuff
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-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 156b52732f3d..5847d6d0881e 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c @@ -851,6 +851,7 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb, if (unlikely(!_urb)) { RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't allocate urb. Drop skb!\n"); + kfree_skb(skb); return; } _rtl_submit_tx_urb(hw, _urb); |