Skip to content
Commit 72dc5601 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

PCI: Don't convert BAR address to resource if dma_addr_t is too small



If dma_addr_t is too small to represent the BAR value,
pcibios_bus_to_resource() will fail, so just remember the BAR size directly
in the resource.  The resource is already marked UNSET, so we know the
address isn't valid anyway.

Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent d1a313e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment