From: Bjorn Helgaas Date: Wed, 30 Apr 2014 00:42:49 +0000 (-0600) Subject: PCI: Don't convert BAR address to resource if dma_addr_t is too small X-Git-Tag: omap-for-v3.16/fixes-against-rc1~38^2~8^6~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72dc5601fe5fec37cc1bd0efb19d99948fe7e54c;p=pandora-kernel.git 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 --- Reading git-diff-tree failed