[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>
Thu, 19 Dec 2013 15:39:03 +0000 (07:39 -0800)
commit11f8a7b31f2140b0dc164bb484281235ffbe51d3
tree6bef4c31f17f7d992e141b99b499807c3fd37a9a
parent6ad55502c65638cad53f211e301c724fe7e64a8e
[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