summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas/tx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c
index c2881a9907c..300aa05edeb 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);