|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] ioemu: fix error recovery in pass-through.c
return NULL when error. fix error recovery path.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
hw/pass-through.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/pass-through.c b/hw/pass-through.c
index e76a3c3..8040f29 100644
--- a/hw/pass-through.c
+++ b/hw/pass-through.c
@@ -3123,8 +3123,10 @@ struct pt_dev * register_real_device(PCIBus *e_bus,
free_pci_slot = __insert_to_pci_slot(r_bus, r_dev, r_func, 0, NULL);
if ( free_pci_slot > 0 )
e_devfn = free_pci_slot << 3;
- else
+ else {
PT_LOG("Error: no free virtual PCI hot plug slot, thus no live
migration.\n");
+ return NULL;
+ }
}
msi_translate = direct_pci_msitranslate;
--
1.6.0.2
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] ioemu: fix error recovery in pass-through.c,
Isaku Yamahata <=
|
|
|
|
|