net: sched: integer overflow fix
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>
This commit is contained in:
parent
8baf82b368
commit
d2fe85da52
@ -919,7 +919,7 @@ ok:
|
|||||||
q->now = ktime_to_ns(ktime_get());
|
q->now = ktime_to_ns(ktime_get());
|
||||||
start_at = jiffies;
|
start_at = jiffies;
|
||||||
|
|
||||||
next_event = q->now + 5 * NSEC_PER_SEC;
|
next_event = q->now + 5LLU * NSEC_PER_SEC;
|
||||||
|
|
||||||
for (level = 0; level < TC_HTB_MAXDEPTH; level++) {
|
for (level = 0; level < TC_HTB_MAXDEPTH; level++) {
|
||||||
/* common case optimization - skip event handler quickly */
|
/* common case optimization - skip event handler quickly */
|
||||||
|
Loading…
Reference in New Issue
Block a user