summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorStefan Hasko <hasko.stevo@gmail.com>2012-12-21 15:04:59 +0000
committerDavid S. Miller <davem@davemloft.net>2012-12-22 00:03:00 -0800
commitd2fe85da52e89b8012ffad010ef352a964725d5f (patch)
tree5436dc3571e2d35b991f9ace393efa5ec17115a4 /net/sched
parent8baf82b368d23aed5c96b01ed7110cdccdd18725 (diff)
downloadop-kernel-dev-d2fe85da52e89b8012ffad010ef352a964725d5f.zip
op-kernel-dev-d2fe85da52e89b8012ffad010ef352a964725d5f.tar.gz
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')
-rw-r--r--net/sched/sch_htb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index d2922c0..51561ea 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 */
OpenPOWER on IntegriCloud