[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] fix raw_aio_remove
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] [PATCH] fix raw_aio_remove |
Date: |
Wed, 18 Feb 2009 16:54:37 +0000 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080505) |
Hi all,
this small patch fixes a bug in the list iteration of raw_aio_remove.
Cheers,
Stefano
Signed-off-by: Stefano Stabellini <address@hidden>
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;
}
}
- [Qemu-devel] [PATCH] fix raw_aio_remove,
Stefano Stabellini <=