diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index 269a6e17c6c4ac65ea5d38c866bcabf5251beb96..6d7542c26e47a7ce3b63df2a07a0e797a0bc9e1b 100644 --- a/net/sched/sch_prio.c +++ b/net/sched/sch_prio.c @@ -75,7 +75,7 @@ prio_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr) band = res.classid; } band = TC_H_MIN(band) - 1; - if (band > q->bands) + if (band >= q->bands) return q->queues[q->prio2band[0]]; return q->queues[band];