OSDN Git Service

target/ppc: unify cpu->has_work based on cs->interrupt_request
[qmiga/qemu.git] / qemu-io-cmds.c
index c8cbaed..952dc94 100644 (file)
@@ -631,7 +631,7 @@ static int do_write_compressed(BlockBackend *blk, char *buf, int64_t offset,
         return -ERANGE;
     }
 
-    ret = blk_pwrite_compressed(blk, offset, buf, bytes);
+    ret = blk_pwrite_compressed(blk, offset, bytes, buf);
     if (ret < 0) {
         return ret;
     }