Don't crash on keyboard input with no handler
commit4282c8277013dc5613b8f27845f6121b66b7cbff
authorDon Koch <dkoch@verizon.com>
Tue, 19 Nov 2013 20:01:59 +0000 (19 15:01 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 2 Dec 2013 17:09:04 +0000 (2 21:09 +0400)
treee4b69091cfe8360c38aa42efcc050b1654b08750
parentefbc42e5848bb8000bfa6927847f1870850942ba
Don't crash on keyboard input with no handler

Prevent a call to put_kbd if null.

On shutdown of some OSes, the keyboard handler goes away before the
system is down. If a key is typed during this window, qemu crashes.

Signed-off-by: Don Koch <dkoch@verizon.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/input.c