summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_htb.c
diff options
context:
space:
mode:
authorStefan Hasko <hasko.stevo@gmail.com>2012-12-21 16:04:59 +0100
committerDavid S. Miller <davem@davemloft.net>2012-12-22 09:03:00 +0100
commitd2fe85da52e89b8012ffad010ef352a964725d5f (patch)
tree5436dc3571e2d35b991f9ace393efa5ec17115a4 /net/sched/sch_htb.c
parentCONFIG_HOTPLUG removal from networking core (diff)
downloadlinux-d2fe85da52e89b8012ffad010ef352a964725d5f.tar.xz
linux-d2fe85da52e89b8012ffad010ef352a964725d5f.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index d2922c0ef57a..51561eafcb72 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 */