intel-iommu: Fix dma vs. mm page confusion with aligned_nrpages()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Jul 2009 08:35:44 +0000 (09:35 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Jul 2009 08:35:52 +0000 (09:35 +0100)
commit5a5e02a614e59db7536cd11029e6674adc41b191
tree11f56f4ca2ea02f14e5cdfaae89e034db23edb28
parent405d7ca51597645f3be850574d6c10f01be11e8d
intel-iommu: Fix dma vs. mm page confusion with aligned_nrpages()

The aligned_nrpages() function rounds up to the next VM page, but
returns its result as a number of DMA pages.

Purely theoretical except on IA64, which doesn't boot with VT-d right
now anyway.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c