mirror of https://gitee.com/openkylin/qemu.git
qxl: fix segfault
Add missing sanity check.
Reproducer: run qemu with "-device qxl" but without "-spice ..."
Fixes: 0d9b90ce5c
("console: make QMP/HMP screendump run in coroutine")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201124122936.30588-1-kraxel@redhat.com
This commit is contained in:
parent
dd3d2340c4
commit
6fc5183a65
|
@ -264,8 +264,10 @@ static void gui_setup_refresh(DisplayState *ds)
|
|||
|
||||
void graphic_hw_update_done(QemuConsole *con)
|
||||
{
|
||||
if (con) {
|
||||
qemu_co_queue_restart_all(&con->dump_queue);
|
||||
}
|
||||
}
|
||||
|
||||
void graphic_hw_update(QemuConsole *con)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue