]> git.proxmox.com Git - mirror_qemu.git/blobdiff - nbd/common.c
Revert "vl: Fix to create migration object before block backends again"
[mirror_qemu.git] / nbd / common.c
index 41f5ed8d9fa79e0a725b8d24ce7c6d57ac62887c..cc8b278e541dd6feeca04382e2029d392c0c0f88 100644 (file)
@@ -31,7 +31,7 @@ int nbd_drop(QIOChannel *ioc, size_t size, Error **errp)
     buffer = sizeof(small) >= size ? small : g_malloc(MIN(65536, size));
     while (size > 0) {
         ssize_t count = MIN(65536, size);
-        ret = nbd_read(ioc, buffer, MIN(65536, size), errp);
+        ret = nbd_read(ioc, buffer, MIN(65536, size), NULL, errp);
 
         if (ret < 0) {
             goto cleanup;