git.codelabs.ch
/
muen
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
65f4740
)
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 4 Aug 2017 22:14:09 +0000
(15:14 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 4 Aug 2017 22:14:09 +0000
(15:14 -0700)
Pull timer fix from Thomas Gleixner:
"A single fix for a multiplication overflow in the timer code on 32bit
systems"
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
timers: Fix overflow in get_next_timer_interrupt
kernel/time/timer.c
patch
|
blob
|
history
diff --git
a/kernel/time/timer.c
b/kernel/time/timer.c
index 71ce3f4eead34afc12fa2743c69e8e9e77c544ad..8f5d1bf18854593e6fa27730d07a99c6700ab45c 100644
(file)
--- a/
kernel/time/timer.c
+++ b/
kernel/time/timer.c
@@
-1495,7
+1495,7
@@
u64 get_next_timer_interrupt(unsigned long basej, u64 basem)
base->is_idle = false;
} else {
if (!is_max_delta)
- expires = basem + (nextevt - basej) * TICK_NSEC;
+ expires = basem + (
u64)(
nextevt - basej) * TICK_NSEC;
/*
* If we expect to sleep more than a tick, mark the base idle:
*/