projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4091da4
)
check for active_console before using it
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 20 May 2010 13:23:06 +0000
(15:23 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 1 Jun 2010 17:53:36 +0000
(12:53 -0500)
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>
console.c
patch
|
blob
|
history
diff --git
a/console.c
b/console.c
index 7070b1b1ade16f99cefeaa9c6ad019d7750941b1..4c42b2810c1797e069fc37e1cc212b7d448ac366 100644
(file)
--- a/
console.c
+++ b/
console.c
@@
-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);
}