diff options
author | Stefan Hasko <hasko.stevo@gmail.com> | 2012-12-21 15:04:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-22 00:03:00 -0800 |
commit | d2fe85da52e89b8012ffad010ef352a964725d5f (patch) | |
tree | 5436dc3571e2d35b991f9ace393efa5ec17115a4 /net/sched/sch_htb.c | |
parent | 8baf82b368d23aed5c96b01ed7110cdccdd18725 (diff) |
net: sched: integer overflow fix
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>
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r-- | net/sched/sch_htb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index d2922c0ef57..51561eafcb7 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -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 */ |