diff options
Diffstat (limited to 'block/vpc.c')
-rw-r--r-- | block/vpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vpc.c b/block/vpc.c index b2a86074a5..651a6737b6 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -228,8 +228,8 @@ static int vpc_open(BlockDriverState *bs, QDict *options, int flags, int ret; int64_t bs_size; - bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file, 0, - false, errp); + bs->file = bdrv_open_child(NULL, options, "file", bs, &child_of_bds, + BDRV_CHILD_IMAGE, false, errp); if (!bs->file) { return -EINVAL; } |