diff options
| author | Marcel Apfelbaum | 2014-01-21 17:37:51 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-01-26 12:11:45 +0100 |
| commit | 306077640a652e090779498aadbeb0c605feaacd (patch) | |
| tree | f8169efccfff4c0d7b2b01508d3c824fcb148f0a /include | |
| parent | acpi-test: update expected AML since recent changes (diff) | |
| download | qemu-306077640a652e090779498aadbeb0c605feaacd.tar.gz qemu-306077640a652e090779498aadbeb0c605feaacd.tar.xz qemu-306077640a652e090779498aadbeb0c605feaacd.zip | |
hw/pci: fix error flow in pci multifunction init
Scenario:
- There is a non multifunction pci device A on 00:0X.0.
- Hot-plug another multifunction pci device B at 00:0X.1.
- The operation will fail of course.
- Try to hot-plug the B device 2-3 more times, qemu will crash.
Reason: The error flow leaves the B's address space into global address spaces
list, but the device object is freed. Fixed that.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
