posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun

do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last,
this discards the already accumulated overruns.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Mark McLoughlin <markmc@redhat.com>
Cc: Oliver Pinter <oliver.pntr@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: stable@kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Oleg Nesterov 2008-07-23 20:52:05 +04:00 committed by Thomas Gleixner
parent 81d50bb254
commit 54da117492

View file

@ -289,7 +289,7 @@ void do_schedule_next_timer(struct siginfo *info)
else
schedule_next_timer(timr);
info->si_overrun = timr->it_overrun_last;
info->si_overrun += timr->it_overrun_last;
}
if (timr)