]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix cleanup of bridge during failure of qemuDomainAttachNetDevice
authorLaine Stump <laine@laine.org>
Tue, 28 Feb 2012 03:43:23 +0000 (22:43 -0500)
committerLaine Stump <laine@laine.org>
Tue, 28 Feb 2012 03:44:22 +0000 (22:44 -0500)
commit4cc4b62e305b1b02838a94f35830737b98444323
treebdc384c9fd6a8cbe37ddd3ff0064b365768d641a
parentf27f616ff899732fe90ce1f0f4abb3887cea5e17
qemu: fix cleanup of bridge during failure of qemuDomainAttachNetDevice

In qemuDomainAttachNetDevice, the guest's tap interface has only been
attached to the bridge if iface_connected is true. It's possible for
an error to occur prior to that happening, and previously we would
attempt to remove the tap interface from the bridge even if it hadn't
been attached.
src/qemu/qemu_hotplug.c