diff options
Diffstat (limited to 'net/sched/sch_prio.c')
-rw-r--r-- | net/sched/sch_prio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index 269a6e17c6c4..6d7542c26e47 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) | |||
75 | band = res.classid; | 75 | band = res.classid; |
76 | } | 76 | } |
77 | band = TC_H_MIN(band) - 1; | 77 | band = TC_H_MIN(band) - 1; |
78 | if (band > q->bands) | 78 | if (band >= q->bands) |
79 | return q->queues[q->prio2band[0]]; | 79 | return q->queues[q->prio2band[0]]; |
80 | 80 | ||
81 | return q->queues[band]; | 81 | return q->queues[band]; |