]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block/stream: Fix error path
authorMax Reitz <mreitz@redhat.com>
Wed, 3 Jul 2019 17:28:03 +0000 (19:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 15 Jul 2019 13:48:40 +0000 (15:48 +0200)
As of commit c624b015bf14fe01f1e6452a36e63b3ea1ae4998, the stream job
only freezes the chain until the overlay of the base node.  The error
path must consider this.

Fixes: c624b015bf14fe01f1e6452a36e63b3ea1ae4998
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190703172813.6868-3-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/stream.c

index cd5e2ba9b071d306b870a38e1785bdcae04bd002..b27e61625d92e760dc6af7715cb850d714d30e10 100644 (file)
@@ -284,5 +284,5 @@ fail:
     if (bs_read_only) {
         bdrv_reopen_set_read_only(bs, true, NULL);
     }
-    bdrv_unfreeze_backing_chain(bs, base);
+    bdrv_unfreeze_backing_chain(bs, bottom);
 }