]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sched/sch_fq_codel.c
net: fq_codel: Fix off-by-one error
[karo-tx-linux.git] / net / sched / sch_fq_codel.c
index 4e606fcb2534929a2470e807816ac1089d81b7b2..55786283a3dfe613ee6deac5756b4726a66925ee 100644 (file)
@@ -195,7 +195,7 @@ static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch)
                flow->deficit = q->quantum;
                flow->dropped = 0;
        }
-       if (++sch->q.qlen < sch->limit)
+       if (++sch->q.qlen <= sch->limit)
                return NET_XMIT_SUCCESS;
 
        q->drop_overlimit++;