From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcjHk-0002Bh-Cm for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcjHi-0002Ap-JJ for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:31 -0500 Received: from [199.232.76.173] (port=34398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcjHi-0002Ad-FQ for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:30 -0500 Received: from savannah.gnu.org ([199.232.41.3]:40303 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcjHh-0006wr-VM for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:30 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LcjHg-0003Su-U4 for qemu-devel@nongnu.org; Thu, 26 Feb 2009 16:40:29 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LcjHg-0003Sq-I3 for qemu-devel@nongnu.org; Thu, 26 Feb 2009 16:40:28 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 26 Feb 2009 16:40:28 +0000 Subject: [Qemu-devel] [6644] fix raw_aio_remove (Stefano Stabellini) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6644 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6644 Author: aliguori Date: 2009-02-26 16:40:19 +0000 (Thu, 26 Feb 2009) Log Message: ----------- 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 Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/block-raw-posix.c Modified: trunk/block-raw-posix.c =================================================================== --- trunk/block-raw-posix.c 2009-02-24 22:17:35 UTC (rev 6643) +++ trunk/block-raw-posix.c 2009-02-26 16:40:19 UTC (rev 6644) @@ -604,13 +604,14 @@ 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; } }