Skip to contentSkip to conversation

pci: Fix PCI capabilities collision error value

PATCH Applied Alex Williamson 3 participants 3 messages Dec 9, 2010 – Dec 13, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: Fix PCI capabilities collision error value

---

 hw/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/pci.c +1 -1
index 288d6fd..0962416 100644
@@ -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;
             }
         }
     }
#1 lore raw
Quoted 11 lines · Alex Williamson

---

 hw/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/pci.c +0 -0
index 288d6fd..0962416 100644

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