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>
This commit is contained in:
David Woodhouse 2007-12-09 22:02:46 -05:00 committed by David S. Miller
parent a97bcfed96
commit 45c24903b7
1 changed files with 3 additions and 1 deletions

View File

@ -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);