un-register kbd driver in case of USB kbd unplug.
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 8 Jun 2010 13:12:18 +0000 (15:12 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jun 2010 20:46:28 +0000 (15:46 -0500)
commitdef1ad044f34122272d6d31d902f36098edb00f1
tree79b45680ef013caa9b558465eaaf666e2dce02c0
parentca17a5ec35c66003613b4934ab32231fda713d09
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>
console.h
hw/usb-hid.c
input.c