[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] qcow2: Fix segfault when qcow2 preallocate fail
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] Re: [PATCH] qcow2: Fix segfault when qcow2 preallocate fails |
Date: |
Tue, 26 Oct 2010 15:48:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 |
Am 26.10.2010 15:23, schrieb Stefan Hajnoczi:
> When an image is created with -o preallocate, ensure that we only call
> preallocate() if the image was indeed opened successfully. Also use
> bdrv_delete() instead of bdrv_close() to avoid leaking the
> BlockDriverState structure.
>
> This fixes the segfault reported at
> https://bugzilla.redhat.com/show_bug.cgi?id=646538.
>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
Looks good for stable-0.13. In master we'll have the new qcow_create2
implementation as soon as Anthony pulls, so it doesn't apply there.
Kevin
[Qemu-devel] Re: KVM call agenda for Oct 26, Gleb Natapov, 2010/10/26