• D
    Fix crash changing CDROM media · 02b90972
    Daniel P. Berrange 提交于
    This change tried to fix a crash with changing CDROM media but
    failed to actually do so
    
      commit d0172d2b
      Author: Osier Yang <jyang@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: NDaniel P. Berrange <berrange@redhat.com>
    02b90972
qemu_driver.c 480.8 KB