Skip to content

Commit f907bb4

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Glexiner: "A single regression fix to address the unintended breakage of posix cpu timers. This is caused by a new sanity check in the common code, which fails for posix cpu timers under certain conditions because the posix cpu timer code never updates the variable which is checked" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: posix-cpu-timers: Unbreak timer rearming
2 parents 9881051 + 93ad0fc commit f907bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/time/posix-cpu-timers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ static int posix_cpu_timer_set(struct k_itimer *timer, int timer_flags,
685685
* set up the signal and overrun bookkeeping.
686686
*/
687687
timer->it.cpu.incr = timespec64_to_ns(&new->it_interval);
688+
timer->it_interval = ns_to_ktime(timer->it.cpu.incr);
688689

689690
/*
690691
* This acts as a modification timestamp for the timer,

0 commit comments

Comments
 (0)