diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-10 03:02:46 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:06:29 (GMT) |
commit | 45c24903b7026ec99c059d690f3618e3f95f2790 (patch) | |
tree | 8f7c05b903e4377be8c947354aae8633aefe67f1 /drivers/net/wireless/libertas/tx.c | |
parent | a97bcfed96b563f56f55dbccee70e09bd2800414 (diff) | |
download | linux-45c24903b7026ec99c059d690f3618e3f95f2790.tar.xz |
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 <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index c2881a9..300aa05 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); |