aboutsummaryrefslogtreecommitdiff
path: root/block-raw-posix.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-26 16:40:19 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-26 16:40:19 +0000
commit7a11b22eab559e24540059d46c70f4feffe052d7 (patch)
treef00a79d5e44304b0d043e750548ad56e097b9263 /block-raw-posix.c
parent18307f2659c4e8c36fb6b32ab312f759cb068fd4 (diff)
downloadqemu-7a11b22eab559e24540059d46c70f4feffe052d7.zip
qemu-7a11b22eab559e24540059d46c70f4feffe052d7.tar.gz
qemu-7a11b22eab559e24540059d46c70f4feffe052d7.tar.bz2
fix raw_aio_remove (Stefano Stabellini)
Hi all, this small patch fixes a bug in the list iteration of raw_aio_remove. Cheers, Stefano Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6644 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw-posix.c')
-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 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;
}
}