summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeidong Han <weidong.han@intel.com>2009-02-18 14:25:08 +0800
committerAvi Kivity <avi@redhat.com>2009-02-24 12:08:08 +0200
commitc770bd28403a56a15770663331757158634af8c4 (patch)
treea171e1c2a530be7d0e90d2a2237fc2aab1476afb /hw/device-assignment.h
parentkvm: libkvm: add deassign ioctl (diff)
downloadqemu-kvm-c770bd28403a56a15770663331757158634af8c4.tar.gz
qemu-kvm-c770bd28403a56a15770663331757158634af8c4.tar.bz2
qemu-kvm-c770bd28403a56a15770663331757158634af8c4.zip
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>
Diffstat (limited to 'hw/device-assignment.h')
-rw-r--r--hw/device-assignment.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/device-assignment.h b/hw/device-assignment.h
index f216bb049..6a9b9fa01 100644
--- a/hw/device-assignment.h
+++ b/hw/device-assignment.h
@@ -94,7 +94,6 @@ struct AssignedDevInfo {
int disable_iommu;
};
-void free_assigned_device(AssignedDevInfo *adev);
PCIDevice *init_assigned_device(AssignedDevInfo *adev, PCIBus *bus);
AssignedDevInfo *add_assigned_device(const char *arg);
void add_assigned_devices(PCIBus *bus, const char **devices, int n_devices);