[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] blkverify: Fix BDS leak in .bdrv_open error
From: |
Jeff Cody |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] blkverify: Fix BDS leak in .bdrv_open error path |
Date: |
Tue, 13 Oct 2015 08:35:20 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Oct 13, 2015 at 02:17:40PM +0200, Kevin Wolf wrote:
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block/blkverify.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/block/blkverify.c b/block/blkverify.c
> index f8655ad..c5f8e8d 100644
> --- 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;
> }
> --
> 1.8.3.1
>
Reviewed-by: Jeff Cody <address@hidden>