]> git.proxmox.com Git - qemu.git/blobdiff - block.c
block: Fix multiwrite error handling
[qemu.git] / block.c
diff --git a/block.c b/block.c
index e891544dd1e3cf1daa7409cbb064b477f3ef6011..06ed08ad88b499ce9c0c51c66008d69983ba4ee2 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1740,7 +1740,7 @@ static void multiwrite_cb(void *opaque, int ret)
 {
     MultiwriteCB *mcb = opaque;
 
-    if (ret < 0) {
+    if (ret < 0 && !mcb->error) {
         mcb->error = ret;
         multiwrite_user_cb(mcb);
     }