Skip to content

Commit

Permalink
[PATCH] hrtimers: fix possible use of NULL pointer in posix-timers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Feb 1, 2006
1 parent bc1978d commit b6557fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ void do_schedule_next_timer(struct siginfo *info)
info->si_overrun = timr->it_overrun_last;
}

unlock_timer(timr, flags);
if (timr)
unlock_timer(timr, flags);
}

int posix_timer_event(struct k_itimer *timr,int si_private)
Expand Down

0 comments on commit b6557fb

Please sign in to comment.