projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c2897
)
lsi: fix segfault in lsi_command_complete
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 29 Mar 2010 13:42:57 +0000
(15:42 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 9 Apr 2010 19:52:01 +0000
(21:52 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/lsi53c895a.c
patch
|
blob
|
history
diff --git
a/hw/lsi53c895a.c
b/hw/lsi53c895a.c
index
0daea40
..
98b7f54
100644
(file)
--- 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;