diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-03-29 15:42:57 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-09 21:52:01 +0200 |
commit | 6ac08101f9de84be1fb7b45f87caed8ba8f3eb5a (patch) | |
tree | 38517b55ea3d87b5b77579fbdd81eb513515d2ea /hw | |
parent | 28c289737309f0a6ea6e108b2bb5e2e93c6d7233 (diff) | |
download | hqemu-6ac08101f9de84be1fb7b45f87caed8ba8f3eb5a.zip hqemu-6ac08101f9de84be1fb7b45f87caed8ba8f3eb5a.tar.gz |
lsi: fix segfault in lsi_command_complete
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/lsi53c895a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 0daea40..98b7f54 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; |