qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] fix raw_aio_remove


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] fix raw_aio_remove
Date: Thu, 26 Feb 2009 10:40:39 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Stefano Stabellini wrote:
Hi all,
this small patch fixes a bug in the list iteration of raw_aio_remove.
Cheers,

Applied.  Thanks.

Regards,

Anthony Liguori

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;
     }
 }







reply via email to

[Prev in Thread] Current Thread [Next in Thread]