]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: fix segfault when detaching non-existent network device
authorGuannan Ren <gren@redhat.com>
Mon, 12 Mar 2012 15:50:02 +0000 (23:50 +0800)
committerLaine Stump <laine@laine.org>
Tue, 13 Mar 2012 07:06:35 +0000 (03:06 -0400)
commit19c7980ee6ca94308313b440fd39f308b4ae844e
tree63f8fbaedd3d9502d0e0aae93e48c06560664af9
parent041109afef612e0667a5040f9019f91031e1573b
qemu: fix segfault when detaching non-existent network device

In qemuDomainDetachNetDevice, detach was being used before it had been
validated. If no matching device was found, this resulted in a
dereference of a NULL pointer.

This behavior was a regression introduced in commit
cf90342be0022520e25cfa258cef1034b229a100, so it has not been a part of
any official libvirt release.
src/qemu/qemu_hotplug.c