projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8baf82b
)
net: sched: integer overflow fix
author
Stefan Hasko
<hasko.stevo@gmail.com>
Fri, 21 Dec 2012 15:04:59 +0000
(15:04 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 22 Dec 2012 08:03:00 +0000
(
00:03
-0800)
Fixed integer overflow in function htb_dequeue
Signed-off-by: Stefan Hasko <hasko.stevo@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_htb.c
b/net/sched/sch_htb.c
index d2922c0ef57a65047e82e9fbf8f1a890dcdbea85..51561eafcb72fb75546b2565be0b6f442160b808 100644
(file)
--- a/
net/sched/sch_htb.c
+++ b/
net/sched/sch_htb.c
@@
-919,7
+919,7
@@
ok:
q->now = ktime_to_ns(ktime_get());
start_at = jiffies;
- next_event = q->now + 5 * NSEC_PER_SEC;
+ next_event = q->now + 5
LLU
* NSEC_PER_SEC;
for (level = 0; level < TC_HTB_MAXDEPTH; level++) {
/* common case optimization - skip event handler quickly */