intel-iommu: Fix integer wrap on 32 bit kernels
authorBenjamin LaHaise <ben.lahaise@neterion.com>
Thu, 17 Sep 2009 01:05:55 +0000 (21:05 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 16:26:20 +0000 (09:26 -0700)
commit64de5af000e99f32dd49ff5dd9a0fd7db1f60305
treef26d720da22d1b3afd24c4edebb26f7b3318ba4b
parent59c36286b74ae6a8adebf6e133a83d7f2e3e6704
intel-iommu: Fix integer wrap on 32 bit kernels

The following 64 bit promotions are necessary to handle memory above the
4GiB boundary correctly.

[dwmw2: Fix the second part not to need 64-bit arithmetic at all]

Signed-off-by: Benjamin LaHaise <ben.lahaise@neterion.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c