projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6253db0
)
[NET_SCHED]: prio qdisc boundary condition
author
Jamal Hadi Salim
<hadi@cyberus.ca>
Mon, 14 May 2007 09:57:19 +0000
(
02:57
-0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 May 2007 09:57:19 +0000
(
02:57
-0700)
This fixes an out-of-boundary condition when the classified
band equals q->bands. Caught by Alexey
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_prio.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_prio.c
b/net/sched/sch_prio.c
index
269a6e1
..
6d7542c
100644
(file)
--- 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];