Przeglądaj źródła

Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb:
  kgdboc,input: Fix regression with keyboard release key and early debugging
Linus Torvalds 14 lat temu
rodzic
commit
3373c3ddb2
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      drivers/serial/kgdboc.c

+ 2 - 1
drivers/serial/kgdboc.c

@@ -90,7 +90,8 @@ static DECLARE_WORK(kgdboc_restore_input_work, kgdboc_restore_input_helper);
 
 
 static void kgdboc_restore_input(void)
 static void kgdboc_restore_input(void)
 {
 {
-	schedule_work(&kgdboc_restore_input_work);
+	if (likely(system_state == SYSTEM_RUNNING))
+		schedule_work(&kgdboc_restore_input_work);
 }
 }
 
 
 static int kgdboc_register_kbd(char **cptr)
 static int kgdboc_register_kbd(char **cptr)