Commit 6beefa9f authored by Jamal Hadi Salim's avatar Jamal Hadi Salim Committed by David S. Miller

[SCHED GRED]: Another bug found by Stanford Checker.

parent 54911c4d
...@@ -116,7 +116,7 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch) ...@@ -116,7 +116,7 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch)
} }
if ( ((skb->tc_index&0xf) > t->DPs) || !(q=t->tab[skb->tc_index&0xf])) { if ( ((skb->tc_index&0xf) > (t->DPs -1)) || !(q=t->tab[skb->tc_index&0xf])) {
printk("GRED: setting to default (%d)\n ",t->def); printk("GRED: setting to default (%d)\n ",t->def);
if (!(q=t->tab[t->def])) { if (!(q=t->tab[t->def])) {
DPRINTK("GRED: setting to default FAILED! dropping!! " DPRINTK("GRED: setting to default FAILED! dropping!! "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment