kvm: qemu: free device on error in init_assigned_device
commit9feab03855cf2683d7a3000a607ca3662001dd62
authorWeidong Han <weidong.han@intel.com>
Wed, 18 Feb 2009 06:25:08 +0000 (18 14:25 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Feb 2009 10:08:08 +0000 (24 12:08 +0200)
treecde227645394e659876c7dce11b91c93f2b9069f
parent0512290fa039bfb8254df33bd5e1a8407add4211
kvm: qemu: free device on error in init_assigned_device

make init_assigned_device call free_assigned_device on error,
and then make free_assigned_device is static because it's only
invoked in device-assigned.c.

Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/device-assignment.c
qemu/hw/device-assignment.h
qemu/hw/pci-hotplug.c