[libvirt] [PATCH] qemu: Release the lock on domobj if fails on finding the disk path

Eric Blake eblake at redhat.com
Tue Dec 20 18:56:23 UTC 2011


On 12/20/2011 04:51 AM, Osier Yang wrote:
> ---
>  src/qemu/qemu_driver.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 660d771..c156794 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -7181,7 +7181,7 @@ qemuDomainBlockResize (virDomainPtr dom,
>      if ((i = virDomainDiskIndexByName(vm->def, path, false)) < 0) {
>          qemuReportError(VIR_ERR_INVALID_ARG,
>                          _("invalid path: %s"), path);
> -        goto cleanup;
> +        goto endjob;

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111220/20addfee/attachment-0001.sig>


More information about the libvir-list mailing list