diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-03-17 11:54:04 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-18 15:20:38 -0400 |
commit | 36ef0b473fbf43d5db23eea4616cc1d18cec245f (patch) | |
tree | 7497a50a564a290fc8f554bae831763c555c0000 /drivers | |
parent | 084c7189acb3f969c855536166042e27f5dd703f (diff) | |
download | linux-36ef0b473fbf43d5db23eea4616cc1d18cec245f.tar.gz linux-36ef0b473fbf43d5db23eea4616cc1d18cec245f.tar.bz2 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')
-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); |