From 46aaebff40f942e7b17b426916a3dee9b8b6f274 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Tue, 8 Jun 2010 15:12:18 +0200 Subject: un-register kbd driver in case of USB kbd unplug. If a USB keyboard is unplugged, the keyboard eventhandler is never removed, and events will continue to be passed through to the device, causing crashes or memory corruption. Signed-off-by: Jes Sorensen Signed-off-by: Anthony Liguori --- console.h | 1 + 1 file changed, 1 insertion(+) (limited to 'console.h') diff --git a/console.h b/console.h index cac959f642..aafb0312c5 100644 --- a/console.h +++ b/console.h @@ -42,6 +42,7 @@ typedef struct QEMUPutLEDEntry { } QEMUPutLEDEntry; void qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque); +void qemu_remove_kbd_event_handler(void); QEMUPutMouseEntry *qemu_add_mouse_event_handler(QEMUPutMouseEvent *func, void *opaque, int absolute, const char *name); -- cgit v1.2.1