]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/vvfat.c
block: Convert bs->backing_hd to BdrvChild
[mirror_qemu.git] / block / vvfat.c
index 7ddc9624365c6de3be4e0c142a35df530b55c57e..7c4b0f5ce43da373fa5bed8afcb8d7483d9ff74c 100644 (file)
@@ -2972,9 +2972,9 @@ static int enable_write_target(BDRVVVFATState *s, Error **errp)
 #endif
 
     bdrv_set_backing_hd(s->bs, bdrv_new());
-    s->bs->backing_hd->drv = &vvfat_write_target;
-    s->bs->backing_hd->opaque = g_new(void *, 1);
-    *(void**)s->bs->backing_hd->opaque = s;
+    s->bs->backing->bs->drv = &vvfat_write_target;
+    s->bs->backing->bs->opaque = g_new(void *, 1);
+    *(void**)s->bs->backing->bs->opaque = s;
 
     return 0;