From: Thomas Gleixner Date: Wed, 1 Feb 2006 11:05:09 +0000 (-0800) Subject: [PATCH] hrtimers: fix possible use of NULL pointer in posix-timers X-Git-Tag: v3.12-rc1~38897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6557fbca805217588a412f391a65ceafcf1a1af;p=kernel%2Fkernel-generic.git [PATCH] hrtimers: fix possible use of NULL pointer in posix-timers Fixup the conversion of posix-timers to hrtimers. Signed-off-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index 197208b..3b606d3 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -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)