Commit b6557fbc authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] hrtimers: fix possible use of NULL pointer in posix-timers

Fixup the conversion of posix-timers to hrtimers.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bc1978d4
...@@ -290,7 +290,8 @@ void do_schedule_next_timer(struct siginfo *info) ...@@ -290,7 +290,8 @@ void do_schedule_next_timer(struct siginfo *info)
info->si_overrun = timr->it_overrun_last; 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) int posix_timer_event(struct k_itimer *timr,int si_private)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment