aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/translate.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-11-18 16:41:59 +0100
committerAlexander Graf <agraf@suse.de>2012-01-03 02:49:25 +0100
commit33bcd98c4e9fe0866807bef6253a057c82087539 (patch)
tree86d7a72616d61ef47e8e49de7d96750e88f3878c /target-ppc/translate.c
parent4e9200a0a0f89ad2b26f6aa42e1fca16b364a8c8 (diff)
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 'target-ppc/translate.c')
0 files changed, 0 insertions, 0 deletions