[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 2/3] hw/usb/hcd-xhci-pci: Abort if setting link property faile
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 2/3] hw/usb/hcd-xhci-pci: Abort if setting link property failed |
Date: |
Thu, 26 Aug 2021 22:07:19 +0200 |
Do not ignore eventual error if we failed at setting the 'host'
property of the TYPE_XHCI model.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
hw/usb/hcd-xhci-pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/hcd-xhci-pci.c b/hw/usb/hcd-xhci-pci.c
index e934b1a5b1f..24c528d210f 100644
--- a/hw/usb/hcd-xhci-pci.c
+++ b/hw/usb/hcd-xhci-pci.c
@@ -115,7 +115,7 @@ static void usb_xhci_pci_realize(struct PCIDevice *dev,
Error **errp)
dev->config[PCI_CACHE_LINE_SIZE] = 0x10;
dev->config[0x60] = 0x30; /* release number */
- object_property_set_link(OBJECT(&s->xhci), "host", OBJECT(s), NULL);
+ object_property_set_link(OBJECT(&s->xhci), "host", OBJECT(s),
&error_abort);
s->xhci.intr_update = xhci_pci_intr_update;
s->xhci.intr_raise = xhci_pci_intr_raise;
if (!qdev_realize(DEVICE(&s->xhci), NULL, errp)) {
--
2.31.1
- [PATCH v3 0/3] hw/usb: Always expect 'dma' link property to be set to simplify, Philippe Mathieu-Daudé, 2021/08/26
- [PATCH v3 1/3] hw/pci: Introduce pci_dma_memory_region() helper, Philippe Mathieu-Daudé, 2021/08/26
- [PATCH v3 2/3] hw/usb/hcd-xhci-pci: Abort if setting link property failed,
Philippe Mathieu-Daudé <=
- [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Philippe Mathieu-Daudé, 2021/08/26
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Mark Cave-Ayland, 2021/08/26
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Peter Maydell, 2021/08/27
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Mark Cave-Ayland, 2021/08/27
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Peter Maydell, 2021/08/27
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Mark Cave-Ayland, 2021/08/27
- Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set, Philippe Mathieu-Daudé, 2021/08/27