[libvirt] [PATCH] Fix crash changing CDROM media

Eric Blake eblake at redhat.com
Mon Feb 25 17:46:28 UTC 2013


On 02/25/2013 10:25 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> This change tried to fix a crash with changing CDROM media but
> failed to actually do so
> 
>   commit d0172d2b1b5d865aaa042070d7c2d00effb2ff8c
>   Author: Osier Yang <jyang at redhat.com>
>   Date:   Tue Feb 19 20:27:45 2013 +0800
> 
>     qemu: Remove the shared disk entry if the operation is ejecting or updating
> 
> It was still accessing disk->src, when the entire 'disk' object
> has been free'd already. Even if it weren't free'd, accessing
> the 'src' value of virDomainDiskDef is not allowed without
> first validating disk->type is file or block. Just remove the
> broken code entirely.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/qemu/qemu_driver.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake 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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130225/47156386/attachment-0001.sig>


More information about the libvir-list mailing list