diff options
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r-- | block-raw-posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 620791b..85ca704 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; } } |