aboutsummaryrefslogtreecommitdiff
path: root/migration-tcp.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2010-05-11 06:44:21 -0400
committerMichael S. Tsirkin <mst@redhat.com>2010-05-12 01:59:11 +0300
commit925fe64ae7b487fdb7bd56fcab63e2f87653c226 (patch)
treede0ad9b6677f69773d4c5349a59d5c26858aeb7c /migration-tcp.c
parent54d7cf136f040713095cbc064f62d753bff6f9d2 (diff)
pci: cleanly backout of pci_qdev_init()
If the init function of a device fails, as might happen with device assignment, we never undo the work done by do_pci_register_device(). This not only causes a bit of a memory leak, but also leaves a bogus pointer in the bus devices array that can cause a segfault or garbage data from 'info pci'. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'migration-tcp.c')
0 files changed, 0 insertions, 0 deletions