summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-08-31 04:22:20 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-02 02:39:56 +0200
commitce93718fb7cdbc064c3000ff59e4d3200bdfa744 (patch)
treee3bfb4777857095c58395e697c06a3e4ecf61c72 /net/sched/sch_generic.c
parentnet: Validate xmit SKBs right when we pull them out of the qdisc. (diff)
downloadlinux-ce93718fb7cdbc064c3000ff59e4d3200bdfa744.tar.xz
linux-ce93718fb7cdbc064c3000ff59e4d3200bdfa744.zip
net: Don't keep around original SKB when we software segment GSO frames.
Just maintain the list properly by returning the head of the remaining SKB list from dev_hard_start_xmit(). Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index f178798a5836..a8bf9f9928bd 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -129,7 +129,7 @@ int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q,
HARD_TX_LOCK(dev, txq, smp_processor_id());
if (!netif_xmit_frozen_or_stopped(txq))
- ret = dev_hard_start_xmit(skb, dev, txq);
+ skb = dev_hard_start_xmit(skb, dev, txq, &ret);
HARD_TX_UNLOCK(dev, txq);