Skip to content

Commit b6557fb

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] hrtimers: fix possible use of NULL pointer in posix-timers
Fixup the conversion of posix-timers to hrtimers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent bc1978d commit b6557fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/posix-timers.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ void do_schedule_next_timer(struct siginfo *info)
290290
info->si_overrun = timr->it_overrun_last;
291291
}
292292

293-
unlock_timer(timr, flags);
293+
if (timr)
294+
unlock_timer(timr, flags);
294295
}
295296

296297
int posix_timer_event(struct k_itimer *timr,int si_private)

0 commit comments

Comments
 (0)