Message ID | 401915819091745dcd925fffef2ec1a9738a80cd.1480085716.git.agordeev@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/pci-host-generic.c b/lib/pci-host-generic.c index d57b47ee4c53..7f72d649144e 100644 --- a/lib/pci-host-generic.c +++ b/lib/pci-host-generic.c @@ -271,7 +271,7 @@ phys_addr_t pci_host_bridge_get_paddr(u64 pci_addr) as++; } - return 0; + return ~0; } static void __iomem *pci_get_dev_conf(struct pci_host_bridge *host, int devfn)
Function pci_host_bridge_get_paddr() returns zero in case no mapping for a passed PCI address is found. All ones is a better choice, since zero may be a legitimate physical address. Suggested-by: Andrew Jones <drjones@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: Andrew Jones <drjones@redhat.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> --- lib/pci-host-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)