From: Jussi Kivilinna Date: Sun, 17 Mar 2013 09:54:04 +0000 (+0200) Subject: rtlwifi: usb: add missing freeing of skbuff X-Git-Tag: v3.4.39~56 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e401e130f3510a254e4018db71f5272f7118879a;p=karo-tx-linux.git rtlwifi: usb: add missing freeing of skbuff commit 36ef0b473fbf43d5db23eea4616cc1d18cec245f upstream. Signed-off-by: Jussi Kivilinna Acked-by: Larry Finger Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index 6ce848457d16..2b6faa069e9a 100644 --- a/drivers/net/wireless/rtlwifi/usb.c +++ b/drivers/net/wireless/rtlwifi/usb.c @@ -853,6 +853,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; } urb_list = &rtlusb->tx_pending[ep_num];