]> xenbits.xensource.com Git - libvirt.git/commit
Fix data structure handling when controllers are attached
authorWolfgang Mauerer <wolfgang.mauerer@siemens.com>
Tue, 2 Mar 2010 08:24:59 +0000 (09:24 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 2 Mar 2010 08:24:59 +0000 (09:24 +0100)
commit24cc058e5e74e6b35b8f0e42e16ebbdc245e19ac
treeae68ece301df1307b85661c5754e41f97480e92d
parent553447ac3b32f741df849bfb6375a3c4492d08e4
Fix data structure handling when controllers are attached

* src/qemu/qemu_driver.c: in qemudDomainAttachDevice(), one must not
  delete the data part when the operation succeeds because it is
  required later on. The correct pattern to handlethe parsed
  representation of the device information on success
  is dev->data.controller = NULL; virDomainDeviceDefFree(dev);,
  which leaves the structure pointed at by data in memory.
src/qemu/qemu_driver.c