Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / kernel / debug / kdb / kdb_main.c
index e2ae7349437f2b1a36879be0ca713b9ea4e8948b..67b847dfa2bb64b58d30db51460f22243142ee2d 100644 (file)
@@ -1400,6 +1400,9 @@ int kdb_main_loop(kdb_reason_t reason, kdb_reason_t reason2, int error,
        if (KDB_STATE(DOING_SS))
                KDB_STATE_CLEAR(SSBPT);
 
+       /* Clean up any keyboard devices before leaving */
+       kdb_kbd_cleanup_state();
+
        return result;
 }