Commit d2fe85da authored by Stefan Hasko's avatar Stefan Hasko Committed by David S. Miller

net: sched: integer overflow fix

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>
parent 8baf82b3
......@@ -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 */
......
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