public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pci: Fix PCI capabilities collision error value
@ 2010-12-09 16:16 Alex Williamson
  2010-12-09 17:14 ` Markus Armbruster
  2010-12-13 12:01 ` Avi Kivity
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Williamson @ 2010-12-09 16:16 UTC (permalink / raw)
  To: kvm; +Cc: avi, alex.williamson

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

 hw/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pci.c b/hw/pci.c
index 288d6fd..0962416 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -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;
             }
         }
     }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-13 12:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 16:16 [PATCH] pci: Fix PCI capabilities collision error value Alex Williamson
2010-12-09 17:14 ` Markus Armbruster
2010-12-13 12:01 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox