sim-card
/
qemu
Archived
10
0
Fork 0

lsi: fix segfault in lsi_command_complete

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Gerd Hoffmann 2010-03-29 15:42:57 +02:00 committed by Aurelien Jarno
parent 28c2897373
commit 6ac08101f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;