projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779020c
)
blkverify: Fix BDS leak in .bdrv_open error path
author
Kevin Wolf
<kwolf@redhat.com>
Tue, 13 Oct 2015 12:15:53 +0000
(14:15 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 16 Oct 2015 13:34:30 +0000
(15:34 +0200)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/blkverify.c
patch
|
blob
|
history
diff --git
a/block/blkverify.c
b/block/blkverify.c
index
f8655ad
..
c5f8e8d
100644
(file)
--- a/
block/blkverify.c
+++ b/
block/blkverify.c
@@
-143,6
+143,9
@@
static int blkverify_open(BlockDriverState *bs, QDict *options, int flags,
ret = 0;
fail:
+ if (ret < 0) {
+ bdrv_unref_child(bs, bs->file);
+ }
qemu_opts_del(opts);
return ret;
}