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>
This commit is contained in:
Jussi Kivilinna 2013-03-17 11:54:04 +02:00 committed by John W. Linville
parent 084c7189ac
commit 36ef0b473f
1 changed files with 1 additions and 0 deletions

View File

@ -851,6 +851,7 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb,
if (unlikely(!_urb)) { if (unlikely(!_urb)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"Can't allocate urb. Drop skb!\n"); "Can't allocate urb. Drop skb!\n");
kfree_skb(skb);
return; return;
} }
_rtl_submit_tx_urb(hw, _urb); _rtl_submit_tx_urb(hw, _urb);