summaryrefslogtreecommitdiffstats
path: root/kernel/net/sched/sch_fq_codel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/sched/sch_fq_codel.c')
-rw-r--r--kernel/net/sched/sch_fq_codel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/sched/sch_fq_codel.c b/kernel/net/sched/sch_fq_codel.c
index c244c45b7..9291598b5 100644
--- a/kernel/net/sched/sch_fq_codel.c
+++ b/kernel/net/sched/sch_fq_codel.c
@@ -162,10 +162,10 @@ static unsigned int fq_codel_drop(struct Qdisc *sch)
skb = dequeue_head(flow);
len = qdisc_pkt_len(skb);
q->backlogs[idx] -= len;
- kfree_skb(skb);
sch->q.qlen--;
qdisc_qstats_drop(sch);
qdisc_qstats_backlog_dec(sch, skb);
+ kfree_skb(skb);
flow->dropped++;
return idx;
}