diff options
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r-- | net/sched/sch_netem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 90aeeb7b7167..672c35445793 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -662,8 +662,8 @@ static int netem_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, | |||
662 | 662 | ||
663 | sch_tree_lock(sch); | 663 | sch_tree_lock(sch); |
664 | *old = xchg(&q->qdisc, new); | 664 | *old = xchg(&q->qdisc, new); |
665 | qdisc_tree_decrease_qlen(*old, (*old)->q.qlen); | ||
665 | qdisc_reset(*old); | 666 | qdisc_reset(*old); |
666 | sch->q.qlen = 0; | ||
667 | sch_tree_unlock(sch); | 667 | sch_tree_unlock(sch); |
668 | 668 | ||
669 | return 0; | 669 | return 0; |