From: Bjorn Helgaas Date: Thu, 12 Mar 2015 17:30:15 +0000 (-0500) Subject: PCI: Fail pci_ioremap_bar() on unassigned resources X-Git-Tag: omap-for-v4.1/fixes-rc1~172^2~3^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646c0282df04265f77ebd5ad3beae671e59acd5b;p=pandora-kernel.git PCI: Fail pci_ioremap_bar() on unassigned resources Make pci_ioremap_bar() fail if we're trying to map a BAR that hasn't been assigned. Normally pci_enable_device() will fail if a BAR hasn't been assigned, but a driver can successfully call pci_enable_device_io() even if a memory BAR hasn't been assigned. That driver should not be able to use pci_ioremap_bar() to map that unassigned memory BAR. Signed-off-by: Bjorn Helgaas Acked-by: Rafael J. Wysocki --- Reading git-diff-tree failed