qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] check for active_console before using it


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] check for active_console before using it
Date: Tue, 01 Jun 2010 13:28:31 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

On 05/20/2010 08:23 AM, Gerd Hoffmann wrote:
Other vga_hw_* functions do the same.
Fixes a segmentation fault.  Trigger: boot with -nodefaults,
then connect via vnc.

Signed-off-by: Gerd Hoffmann<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori
---
  console.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/console.c b/console.c
index 7070b1b..4c42b28 100644
--- 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);
  }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]