Jason Wessel 8863ada9c4 kgdboc,input: Fix regression with keyboard release key and early debugging
The commit 111c182340cd22e238ab1cc6564df336c6ebd7cb (kgdboc: reset
input devices (keyboards) when exiting debugger) introduced a
regression in early debugging such that you get a kernel oops on
continue (with the go command) if you boot a kernel with:

    earlyprintk=vga ekgdboc=kbd kgdbwait

The restore kgdboc_restore_input() routine schedules work for the
purpose of sending key release events for any keys that were in the
depressed state prior to entering the kernel debugger.  A simple fix
to the crash is to not invoke the schedule_work() if the kernel
system_state is anything other than SYSTEM_RUNNING.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Sergei Shtylyov <sshtylyov@mvista.com>
2010-12-13 22:44:03 -06:00
..
2010-10-22 10:20:10 -07:00
2010-11-09 15:03:07 -08:00
2009-09-19 13:13:19 -07:00
2010-09-20 16:30:00 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2010-08-10 13:47:46 -07:00
2010-06-04 13:37:16 -07:00
2010-06-04 13:37:16 -07:00
2009-09-19 13:13:28 -07:00
2010-02-27 18:31:02 +01:00
2009-09-19 13:13:28 -07:00