aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block-raw-posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c
index 620791b70c..85ca704946 100644
--- a/block-raw-posix.c
+++ b/block-raw-posix.c
@@ -604,13 +604,14 @@ static void raw_aio_remove(RawAIOCB *acb)
pacb = &posix_aio_state->first_aio;
for(;;) {
if (*pacb == NULL) {
+ fprintf(stderr, "raw_aio_remove: aio request not found!\n");
break;
} else if (*pacb == acb) {
*pacb = acb->next;
qemu_aio_release(acb);
break;
}
- pacb = &acb->next;
+ pacb = &(*pacb)->next;
}
}