aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-03-17 09:56:30 +0800
committerKevin Wolf <kwolf@redhat.com>2017-03-17 12:54:06 +0100
commit8cd1a3e470212685bdd48ac03fdf9721dafc100b (patch)
tree976b06071492b6f68d62c2c735f7d25fb27de158 /block.c
parent184dd9c49b522fe729cfe21d119f6db241268a50 (diff)
block: Propagate error in bdrv_open_backing_file
Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.c b/block.c
index a77e8a064e..e53808425e 100644
--- a/block.c
+++ b/block.c
@@ -2030,6 +2030,7 @@ int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options,
bdrv_set_backing_hd(bs, backing_hd, &local_err);
bdrv_unref(backing_hd);
if (local_err) {
+ error_propagate(errp, local_err);
ret = -EINVAL;
goto free_exit;
}