Skip to contentSkip to conversation

timer fix

GIT PULL Ingo Molnar 1 participant 1 message Jul 13, 2016 Posix clocks and timers

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest timers-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus

# HEAD: 2c13ce8f6b2f6fd9ba2f9261b1939fc0f62d1307 posix_cpu_timer: Exit early when process has been reaped

A single fix for a posix CPU timers bug.

Thanks,

Ingo

------------------>
Alexey Dobriyan (1):
posix_cpu_timer: Exit early when process has been reaped

 kernel/time/posix-cpu-timers.c | 1 +
 1 file changed, 1 insertion(+)
kernel/time/posix-cpu-timers.c +1 -0
index 1cafba860b08..39008d78927a 100644
@@ -777,6 +777,7 @@ static void posix_cpu_timer_get(struct k_itimer *timer, struct itimerspec *itp)
 			timer->it.cpu.expires = 0;
 			sample_to_timespec(timer->it_clock, timer->it.cpu.expires,
 					   &itp->it_value);
+			return;
 		} else {
 			cpu_timer_sample_group(timer->it_clock, p, &now);
 			unlock_task_sighand(p, &flags);