]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] megaraid: Use resource_size_t for PCI resources, not long
authorBen Collins <ben.c@servergy.com>
Fri, 13 Sep 2013 16:46:44 +0000 (12:46 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 17 Dec 2013 14:26:31 +0000 (06:26 -0800)
commita05248a1c1bc005292d8ce675a9e63e4f623b91a
treeaff73479e129f2688a1c20493a943c7b34760081
parent19443375fdc60a6d05221f5fb449dc664e68daba
[SCSI] megaraid: Use resource_size_t for PCI resources, not long

The assumption that sizeof(long) >= sizeof(resource_size_t) can lead to
truncation of the PCI resource address, meaning this driver didn't work
on 32-bit systems with 64-bit PCI adressing ranges.

Signed-off-by: Ben Collins <ben.c@servergy.com>
Acked-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c