diff options
Diffstat (limited to 'net/sched/sch_choke.c')
-rw-r--r-- | net/sched/sch_choke.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c index 81445cc8196f..cc37dd52ecf9 100644 --- a/net/sched/sch_choke.c +++ b/net/sched/sch_choke.c | |||
@@ -332,15 +332,13 @@ static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
332 | } | 332 | } |
333 | 333 | ||
334 | q->stats.pdrop++; | 334 | q->stats.pdrop++; |
335 | sch->qstats.drops++; | 335 | return qdisc_drop(skb, sch); |
336 | kfree_skb(skb); | ||
337 | return NET_XMIT_DROP; | ||
338 | 336 | ||
339 | congestion_drop: | 337 | congestion_drop: |
340 | qdisc_drop(skb, sch); | 338 | qdisc_drop(skb, sch); |
341 | return NET_XMIT_CN; | 339 | return NET_XMIT_CN; |
342 | 340 | ||
343 | other_drop: | 341 | other_drop: |
344 | if (ret & __NET_XMIT_BYPASS) | 342 | if (ret & __NET_XMIT_BYPASS) |
345 | sch->qstats.drops++; | 343 | sch->qstats.drops++; |
346 | kfree_skb(skb); | 344 | kfree_skb(skb); |