]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/sch_fifo.c
select: deal with math overflow from borderline valid userland data
[linux-2.6-omap-h63xx.git] / net / sched / sch_fifo.c
index 1d97fa42c902ca8c07162e9c455fb95b1c09e09b..23d258bfe8ace223e07d0c23dc62fbe7e0ae9faa 100644 (file)
@@ -27,7 +27,7 @@ static int bfifo_enqueue(struct sk_buff *skb, struct Qdisc* sch)
 {
        struct fifo_sched_data *q = qdisc_priv(sch);
 
-       if (likely(sch->qstats.backlog + skb->len <= q->limit))
+       if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= q->limit))
                return qdisc_enqueue_tail(skb, sch);
 
        return qdisc_reshape_fail(skb, sch);