Commit 254a9848 authored by Stefan Hasko's avatar Stefan Hasko Committed by Ben Hutchings

net: sched: integer overflow fix

[ Upstream commit d2fe85da ]

Fixed integer overflow in function htb_dequeue
Signed-off-by: default avatarStefan Hasko <hasko.stevo@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 9c68c2b7
......@@ -876,7 +876,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
q->now = psched_get_time();
start_at = jiffies;
next_event = q->now + 5 * PSCHED_TICKS_PER_SEC;
next_event = q->now + 5LLU * PSCHED_TICKS_PER_SEC;
for (level = 0; level < TC_HTB_MAXDEPTH; level++) {
/* common case optimization - skip event handler quickly */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment