libvirt/src/conf
Luyao Huang fba7173f72 conf: fix crash when hotplug a channel chr device with no target
https://bugzilla.redhat.com/show_bug.cgi?id=1181408

When we try to hotplug a channel chr device with no target, we
will get success (which should fail) in virDomainChrDefParseXML,
because we use goto cleanup this place and return an incomplete
definition (with no target). In qemuDomainAttachChrDevice,
we add it to the domain definition, but fail to remove it from
there when chardev-add fails, because virDomainChrRemove
matches chardevices according to the target name.
The device definition is then freed in qemuDomainAttachDeviceFlags,
leaving a stale pointer in the domain definition.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2015-01-13 09:56:56 +01:00
..
capabilities.c capabilities: Format <domain/> properly 2014-12-24 18:01:44 +01:00
capabilities.h capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
cpu_conf.c qemu: Allow enabling/disabling features with host-passthrough 2015-01-13 08:51:01 +01:00
cpu_conf.h Memory: Use consistent type for all memory elements. 2014-11-05 14:21:15 +01:00
device_conf.c conf: forbid negative number in address(like controller, bus, slot...) 2014-12-09 11:35:27 +01:00
device_conf.h Introduce virTristateSwitch enum 2014-07-23 12:59:40 +02:00
domain_addr.c Properly check the return value of CCWAddressAsString 2014-06-23 08:31:53 +02:00
domain_addr.h Split out CCW address allocation 2014-06-21 10:12:21 +02:00
domain_audit.c audit: Fix some comments 2014-08-07 10:28:32 +02:00
domain_audit.h audit: Add auditing for serial/parallel/channel/console character devs 2014-07-07 12:56:45 +02:00
domain_capabilities.c domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_capabilities.h domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_conf.c conf: fix crash when hotplug a channel chr device with no target 2015-01-13 09:56:56 +01:00
domain_conf.h Domain network devices can now have a <route> element 2015-01-05 20:24:17 +01:00
domain_event.c Replace virDomainFree with virObjectUnref 2014-12-02 11:03:40 -05:00
domain_event.h event: Add guest agent lifecycle event 2014-11-24 15:39:17 +01:00
domain_nwfilter.c Use K&R style for curly braces in src/conf/ 2014-03-20 17:16:38 +01:00
domain_nwfilter.h
interface_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
interface_conf.h maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
netdev_bandwidth_conf.c network: Add network bandwidth support to ethernet interfaces 2014-11-19 10:36:49 +01:00
netdev_bandwidth_conf.h network: Add network bandwidth support to ethernet interfaces 2014-11-19 10:36:49 +01:00
netdev_vlan_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vlan_conf.h maint: avoid 'const fooPtr' in conf 2013-10-14 14:34:38 -06:00
netdev_vport_profile_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vport_profile_conf.h
network_conf.c network: don't allow multiple dhcp sections 2014-12-08 15:41:09 -05:00
network_conf.h conf: new network bridge device attribute macTableManager 2014-12-08 14:41:37 -05:00
network_event.c Replace virNetworkFree with virObjectUnref 2014-12-02 11:03:40 -05:00
network_event.h event: move event filtering to daemon (regression fix) 2014-02-05 08:03:31 -07:00
node_device_conf.c Replace virNodeDeviceFree with virObjectUnref 2014-12-02 11:03:40 -05:00
node_device_conf.h nodedev: move pci express types to virpci.h 2014-07-28 14:10:25 -06:00
numatune_conf.c numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
numatune_conf.h numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
nwfilter_conf.c nwfilter: Add support for icmpv6 filtering 2015-01-07 11:41:49 -05:00
nwfilter_conf.h nwfilter: Add support for icmpv6 filtering 2015-01-07 11:41:49 -05:00
nwfilter_ipaddrmap.c Remove pointless storage of var names in virNWFilterHashTable 2014-04-25 15:44:09 +01:00
nwfilter_ipaddrmap.h
nwfilter_params.c cleanup spaces between parentheses and braces 2014-08-20 14:50:21 +02:00
nwfilter_params.h conf: use typedefs for enums in node_device_conf, nwfilter_params 2014-05-12 16:49:43 -06:00
object_event_private.h event: prepare client to track domain callbackID 2014-02-12 10:48:15 -07:00
object_event.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
object_event.h event: add notion of remoteID for filtering client network events 2014-01-15 13:55:21 -07:00
secret_conf.c maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
secret_conf.h maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
snapshot_conf.c storage: rbd: qemu: Add support for specifying internal RBD snapshots 2014-11-21 14:37:02 +01:00
snapshot_conf.h conf: store snapshot source as pointer, for easier manipulation 2014-06-06 09:56:27 -06:00
storage_conf.c conf: Fix invalid condition when parsing storage owner 2014-12-16 19:51:34 +01:00
storage_conf.h storage: Add mixed fc_host/scsi_host duplicate adapter source checks 2014-12-01 10:04:25 -05:00
virchrdev.c Replace virStreamFree with virObjectUnref 2014-12-02 11:03:41 -05:00
virchrdev.h