projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a97bcfe
)
libertas: free successfully transmitted skbs again
author
David Woodhouse
<dwmw2@infradead.org>
Mon, 10 Dec 2007 03:02:46 +0000
(22:02 -0500)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:06:29 +0000
(15:06 -0800)
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>
drivers/net/wireless/libertas/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/tx.c
b/drivers/net/wireless/libertas/tx.c
index c2881a9907c06a4a779823281ba89a21454fc4c7..300aa05edeb97c250a336d5f7a25886aba185b51 100644
(file)
--- 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);