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:
parent
28c2897373
commit
6ac08101f9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user