diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-03-17 09:54:04 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-18 19:20:38 (GMT) |
commit | 36ef0b473fbf43d5db23eea4616cc1d18cec245f (patch) | |
tree | 7497a50a564a290fc8f554bae831763c555c0000 /drivers/net/wireless | |
parent | 084c7189acb3f969c855536166042e27f5dd703f (diff) | |
download | linux-36ef0b473fbf43d5db23eea4616cc1d18cec245f.tar.xz |
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')
-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 156b527..5847d6d 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); |