Эх сурвалжийг харах

[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>
Thomas Gleixner 19 жил өмнө
parent
commit
b6557fbca8
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      kernel/posix-timers.c

+ 2 - 1
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)