]> err.no Git - linux-2.6/commitdiff
[PATCH] hrtimers: fix possible use of NULL pointer in posix-timers
authorThomas Gleixner <tglx@linutronix.de>
Wed, 1 Feb 2006 11:05:09 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:12 +0000 (08:53 -0800)
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>
kernel/posix-timers.c

index 197208b3aa2ad837517d27662e5bacaafd75258b..3b606d361b529dfda6097ba08e60bbdfd3be62aa 100644 (file)
@@ -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)