Skip to content

Commit

Permalink
net: sched: integer overflow fix
Browse files Browse the repository at this point in the history
Fixed integer overflow in function htb_dequeue

Signed-off-by: Stefan Hasko <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
matiniero authored and davem330 committed Dec 22, 2012
1 parent 8baf82b commit d2fe85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
q->now = ktime_to_ns(ktime_get());
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++) {
/* common case optimization - skip event handler quickly */
Expand Down

0 comments on commit d2fe85d

Please sign in to comment.