• C
    Fix a crash when restarting libvirtd. · 7cc5410b
    Chris Lalancette 提交于
    If you shutdown libvirtd while a domain with PCI
    devices is running, then try to restart libvirtd,
    libvirtd will crash.
    
    This happens because qemuUpdateActivePciHostdevs() is calling
    pciDeviceListSteal() with a dev of 0x0 (NULL), and then trying
    to dereference it.  This patch fixes it up so that
    qemuUpdateActivePciHostdevs() steals the devices after first
    Get()'ting them, avoiding the crash.
    Signed-off-by: NChris Lalancette <clalance@redhat.com>
    7cc5410b
qemu_driver.c 259.3 KB