pci: Fix PCI capabilities collision error value
PATCH 1/1 pci: Fix PCI capabilities collision error value
Signed-off-by Alex Williamson <[email protected]>
---
hw/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/pci.c +1 -1
@@ -1856,7 +1856,7 @@ int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,pci_find_domain (pdev->bus),pci_bus_num (pdev->bus),PCI_SLOT (pdev->devfn),PCI_FUNC (pdev->devfn), cap_id, offset, pdev->config_map[i], i); -return -EFAULT ; +return -EINVAL ; } } }
Quoted 11 lines · Alex Williamson
Signed-off-by Alex Williamson <[email protected]>---
hw/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)hw/pci.c +0
-0
hw/pci.c int pci_add_capability(PCIDevice *pdev, uint8_t cap_id, · line 1862
Quoted 8 lines
hw/pci.c +1
-1@@ -1856,7 +1856,7 @@ int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,pci_find_domain (pdev->bus),pci_bus_num (pdev->bus),PCI_SLOT (pdev->devfn),PCI_FUNC (pdev->devfn), cap_id, offset, pdev->config_map[i], i); -return -EFAULT ; +return -EINVAL ; } } }
ACK
Avi Kivity
AppliedQuoted 1 line · Alex Williamson
Signed-off-by Alex Williamson<[email protected]>
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function