mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
check for active_console before using it
Other vga_hw_* functions do the same. Fixes a segmentation fault. Trigger: boot with -nodefaults, then connect via vnc. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4091da4b7c
commit
26572b8a0e
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ void vga_hw_update(void)
|
|||
|
||||
void vga_hw_invalidate(void)
|
||||
{
|
||||
if (active_console->hw_invalidate)
|
||||
if (active_console && active_console->hw_invalidate)
|
||||
active_console->hw_invalidate(active_console->hw);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue