diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-14 14:35:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-14 14:35:04 -0800 |
commit | 3373c3ddb26848beee7b8a96fb98d89533dbf9d7 (patch) | |
tree | 50e8d87831b21cf0260020f6924034d76fe6ebe1 /drivers | |
parent | 3907969596091f429b7864cfe4e473a227876a96 (diff) | |
parent | 8863ada9c47503bb93eba5e3a9ba88e6311db31f (diff) | |
download | linux-3373c3ddb26848beee7b8a96fb98d89533dbf9d7.tar.bz2 |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/kgdboc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial/kgdboc.c b/drivers/serial/kgdboc.c index 3374618300af..25a8bc565f40 100644 --- a/drivers/serial/kgdboc.c +++ b/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) { - 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) |