Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */