]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: sched: integer overflow fix
authorStefan Hasko <hasko.stevo@gmail.com>
Fri, 21 Dec 2012 15:04:59 +0000 (15:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Dec 2012 08:03:00 +0000 (00:03 -0800)
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>
net/sched/sch_htb.c

index d2922c0ef57a65047e82e9fbf8f1a890dcdbea85..51561eafcb72fb75546b2565be0b6f442160b808 100644 (file)
@@ -919,7 +919,7 @@ ok:
        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 */