commit | 72dc5601fe5fec37cc1bd0efb19d99948fe7e54c | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Tue Apr 29 18:42:49 2014 -0600 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Fri May 23 10:47:20 2014 -0600 |
tree | b8c874a0633ce7ce9111dd4f3b83aa06a4206f36 | |
parent | d1a313e4b6ccbb61c746ee10ac198970516e9afc [diff] |
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: Bjorn Helgaas <bhelgaas@google.com>