Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3e5c2d3bdbe2c047b9853c4248f881f5ac645c89 Commit: 3e5c2d3bdbe2c047b9853c4248f881f5ac645c89 Parent: 6253db055eb62a1bd0a18a1d8489565303b2b1dd Author: Jamal Hadi Salim <[EMAIL PROTECTED]> AuthorDate: Mon May 14 02:57:19 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Mon May 14 02:57:19 2007 -0700
[NET_SCHED]: prio qdisc boundary condition This fixes an out-of-boundary condition when the classified band equals q->bands. Caught by Alexey Signed-off-by: Jamal Hadi Salim <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- 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 269a6e1..6d7542c 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]; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html