Skip to contentSkip to conversation

block: Propagate error in bdrv_open_backing_file

PATCH Applied Fam Zheng 3 participants 3 messages Mar 17, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 block: Propagate error in bdrv_open_backing_file

---
 block.c | 1 +
 1 file changed, 1 insertion(+)
block.c +1 -0
index cb57370..6621167 100644
@@ -2025,6 +2025,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;
     }
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Fam Zheng
---
 block.c | 1 +
 1 file changed, 1 insertion(+)
block.c +0 -0
index cb57370..6621167 100644

block.c int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, · line 2031

Quoted 7 lines
block.c +1 -0
@@ -2025,6 +2025,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;
     }

Berto