From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJWCk-0001V6-Pc for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:28:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJWCf-0005xV-PN for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:28:46 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:54354) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJWCf-0005xJ-Ke for qemu-devel@nongnu.org; Tue, 01 Jun 2010 14:28:41 -0400 Received: by gwb11 with SMTP id 11so3865518gwb.4 for ; Tue, 01 Jun 2010 11:28:41 -0700 (PDT) Message-ID: <4C05514F.1010305@codemonkey.ws> Date: Tue, 01 Jun 2010 13:28:31 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] check for active_console before using it References: <1274361786-4898-1-git-send-email-kraxel@redhat.com> In-Reply-To: <1274361786-4898-1-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org 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 > 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); > } > >