summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2016-04-13 14:26:56 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2016-04-15 16:53:18 -0400
commite83596b41cb9729837468a1c14de56a5529a2aa6 (patch)
treef0a8f6ac3a82b9a15867567eca6f56805007ec4a /drivers/scsi/pm8001
parent5ea33eb573c9858cdebfb69626cc8621c7468f9e (diff)
downloadlinux-stable-e83596b41cb9729837468a1c14de56a5529a2aa6.tar.gz
linux-stable-e83596b41cb9729837468a1c14de56a5529a2aa6.tar.bz2
linux-stable-e83596b41cb9729837468a1c14de56a5529a2aa6.zip
pm80xx: Remove bogus address masking in pm8001_ioremap()
It is unclear what the original intent of the masking was, but it is clearly incorrect to truncate a physical address before calling ioremap(). On systems where there are valid physical address bits above bit-31 (arm64 for example) the result is an eventual OOPs when initializing the driver. Remove the bogus code to fix it. Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Jack Wang <jinpu.wang@profitbricks.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001')
-rw-r--r--drivers/scsi/pm8001/pm8001_init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
index 062ab34b86f8..6bd7bf4f4a81 100644
--- a/drivers/scsi/pm8001/pm8001_init.c
+++ b/drivers/scsi/pm8001/pm8001_init.c
@@ -418,8 +418,6 @@ static int pm8001_ioremap(struct pm8001_hba_info *pm8001_ha)
if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) {
pm8001_ha->io_mem[logicalBar].membase =
pci_resource_start(pdev, bar);
- pm8001_ha->io_mem[logicalBar].membase &=
- (u32)PCI_BASE_ADDRESS_MEM_MASK;
pm8001_ha->io_mem[logicalBar].memsize =
pci_resource_len(pdev, bar);
pm8001_ha->io_mem[logicalBar].memvirtaddr =