]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Don't convert BAR address to resource if dma_addr_t is too small
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Apr 2014 00:42:49 +0000 (18:42 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2014 16:47:20 +0000 (10:47 -0600)
commitb3ac3a92d87f7a9b6746d3c927c809ce235c69ac
treeb8c874a0633ce7ce9111dd4f3b83aa06a4206f36
parent99ff486e1cd4053ccb245e3df5ae6a7d01e9856c
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>
drivers/pci/probe.c