qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] vmdk: Fix local_err in vmdk_create


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] vmdk: Fix local_err in vmdk_create
Date: Wed, 28 May 2014 16:48:01 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 28.05.2014 um 09:31 hat Markus Armbruster geschrieben:
> Fam Zheng <address@hidden> writes:
> 
> > In vmdk_create and vmdk_create_extent, initialize local_err before using
> > it, and don't leak it on error.
> >
> > Reported-by: Markus Armbruster <address@hidden>
> > Signed-off-by: Fam Zheng <address@hidden>
> > ---
> >  block/vmdk.c | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)

> local_err and error_propagate() are actually superfluous, but I'll fix
> that on top, along with many other instances.

What should really be fixed is that bdrv_open/create_file() return an
-errno int in addition to using Error.

> Reviewed-by: Markus Armbruster <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]