]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
atapi: fix halted DMA reset
authorJohn Snow <jsnow@redhat.com>
Tue, 9 Aug 2016 15:47:23 +0000 (11:47 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Aug 2016 19:16:18 +0000 (14:16 -0500)
Followup to 87ac25fd, this time for ATAPI DMA.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1470164128-28158-1-git-send-email-jsnow@redhat.com
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit 7f951b2d7765f68ae1e563c2fed44071ca774790)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/atapi.c

index 2bb606c1c5cb9577d37b1791bb8ee656e309d6d4..8592a4ae17c354ae34b6253a8f2fbd50054e5d42 100644 (file)
@@ -383,6 +383,7 @@ static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret)
     if (ret < 0) {
         if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) {
             if (s->bus->error_status) {
+                s->bus->dma->aiocb = NULL;
                 return;
             }
             goto eot;