]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
fix raw_aio_remove list walk bug xen-3.3.2-rc1
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 19 Feb 2009 17:58:24 +0000 (17:58 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 19 Feb 2009 17:58:24 +0000 (17:58 +0000)
[ bug is in raw_aio_cancel in this tree -iwj ]

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cherry picked and cross-ported by Ian Jackson
from Stefano's submission to qemu-devel, 18 Feb 2009 16:56:16 GMT.
Cherry picked and cross-ported by Ian Jackson
from qemu-xen-unstable 8adde1cbba18de2704a30a76f20855f89c664a88.

block-raw-posix.c

index 23641755b1a159082b17e17b2b5ec3b65cb7636b..0e356e2c7bf15d0abf45bc06ed5d0e585d805423 100644 (file)
@@ -496,7 +496,7 @@ static void raw_aio_cancel(BlockDriverAIOCB *blockacb)
             qemu_aio_release(acb);
             break;
         }
-        pacb = &acb->next;
+        pacb = &(*pacb)->next;
     }
 }
 #endif