Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0Lu6-00041r-NY for qemu-devel@nongnu.org; Fri, 09 Apr 2010 17:38:18 -0400 Received: from [140.186.70.92] (port=56180 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0Lu4-00040g-4c for qemu-devel@nongnu.org; Fri, 09 Apr 2010 17:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0Lu0-0000U8-Sm for qemu-devel@nongnu.org; Fri, 09 Apr 2010 17:38:15 -0400 Received: from hall.aurel32.net ([88.191.82.174]:40761) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0Lu0-0000Tj-O7 for qemu-devel@nongnu.org; Fri, 09 Apr 2010 17:38:12 -0400 Date: Fri, 9 Apr 2010 21:51:04 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] lsi: fix segfault in lsi_command_complete Message-ID: <20100409195104.GG21042@volta.aurel32.net> References: <1269870177-31797-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1269870177-31797-1-git-send-email-kraxel@redhat.com> 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 Mon, Mar 29, 2010 at 03:42:57PM +0200, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann Thanks, applied. > --- > hw/lsi53c895a.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c > index a332401..525f3ca 100644 > --- a/hw/lsi53c895a.c > +++ b/hw/lsi53c895a.c > @@ -679,7 +679,7 @@ static void lsi_command_complete(SCSIBus *bus, int reason, uint32_t tag, > return; > } > > - if (s->waiting == 1 || tag != s->current->tag || > + if (s->waiting == 1 || !s->current || tag != s->current->tag || > (lsi_irq_on_rsl(s) && !(s->scntl1 & LSI_SCNTL1_CON))) { > if (lsi_queue_tag(s, tag, arg)) > return; > -- > 1.6.6.1 > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net