aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-08-09 16:53:32 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-08-09 16:53:32 +0100
commit2bb15bddf2607110820d5ce5aa43baac27292fb3 (patch)
tree5e9722a117865138d73691eaa41e022ec2fa0730
parentab861f3915e8667927cf18ad97f71cae7ccf8818 (diff)
parent7f951b2d7765f68ae1e563c2fed44071ca774790 (diff)
Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging
# gpg: Signature made Tue 09 Aug 2016 16:47:32 BST # gpg: using RSA key 0x7DEF8106AAFC390E # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>" # Primary key fingerprint: FAEB 9711 A12C F475 812F 18F2 88A9 064D 1835 61EB # Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76 CBD0 7DEF 8106 AAFC 390E * remotes/jnsnow/tags/ide-pull-request: atapi: fix halted DMA reset Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/ide/atapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 95056d92e7..6189675036 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -386,6 +386,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;