diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-06-08 15:12:18 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-14 15:46:28 -0500 |
commit | 46aaebff40f942e7b17b426916a3dee9b8b6f274 (patch) | |
tree | 79b45680ef013caa9b558465eaaf666e2dce02c0 /console.h | |
parent | 55541c8afc1a2d75de890c6ee858769d7d605526 (diff) | |
download | hqemu-46aaebff40f942e7b17b426916a3dee9b8b6f274.zip hqemu-46aaebff40f942e7b17b426916a3dee9b8b6f274.tar.gz |
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 <Jes.Sorensen@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |