From: David Woodhouse Date: Mon, 10 Dec 2007 03:02:46 +0000 (-0500) Subject: libertas: free successfully transmitted skbs again X-Git-Tag: v2.6.25-rc1~1162^2~405 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45c24903b7026ec99c059d690f3618e3f95f2790;p=linux-2.6 libertas: free successfully transmitted skbs again I was so busy cleaning up the failure modes that I accidentally forgot to make sure we still free them in the success case. Oops. Signed-off-by: David Woodhouse Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index c2881a9907..300aa05ede 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c @@ -161,7 +161,9 @@ int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) /* Keep the skb around for when we get feedback */ priv->currenttxskb = skb; - } + } else + dev_kfree_skb_any(skb); + } spin_unlock_irqrestore(&priv->driver_lock, flags);