]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/act_simple.c
select: deal with math overflow from borderline valid userland data
[linux-2.6-omap-h63xx.git] / net / sched / act_simple.c
index 1d421d059caf48aa7f2327acf0c011355deaf534..e7851ce92cfea56cef8ba52943cbbba5a1942b68 100644 (file)
@@ -41,7 +41,7 @@ static int tcf_simp(struct sk_buff *skb, struct tc_action *a, struct tcf_result
 
        spin_lock(&d->tcf_lock);
        d->tcf_tm.lastuse = jiffies;
-       d->tcf_bstats.bytes += skb->len;
+       d->tcf_bstats.bytes += qdisc_pkt_len(skb);
        d->tcf_bstats.packets++;
 
        /* print policy string followed by _ then packet count