diff options
author | Alexander Graf <agraf@suse.de> | 2011-11-18 16:41:59 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-01-03 02:49:25 +0100 |
commit | 33bcd98c4e9fe0866807bef6253a057c82087539 (patch) | |
tree | 86d7a72616d61ef47e8e49de7d96750e88f3878c /fsdev | |
parent | 4e9200a0a0f89ad2b26f6aa42e1fca16b364a8c8 (diff) | |
download | hqemu-33bcd98c4e9fe0866807bef6253a057c82087539.zip hqemu-33bcd98c4e9fe0866807bef6253a057c82087539.tar.gz |
console: Fix segfault on screendump without VGA adapter
When trying to create a screen dump without having any VGA adapter
inside the guest, QEMU segfaults.
This is because it's trying to switch back to the "previous" screen
it was on before dumping the VGA screen. Unfortunately, in my case
there simply is no previous screen so it accesses a NULL pointer.
Fix it by checking if previous_active_console is actually available.
This is 1.0 material.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions