diff options
-rw-r--r-- | arch/x86/kernel/pci-gart_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index df5f142657d2..1062dc1e6396 100644 --- a/arch/x86/kernel/pci-gart_64.c +++ b/arch/x86/kernel/pci-gart_64.c | |||
@@ -93,7 +93,7 @@ static unsigned long alloc_iommu(struct device *dev, int size) | |||
93 | 93 | ||
94 | base_index = ALIGN(iommu_bus_base & dma_get_seg_boundary(dev), | 94 | base_index = ALIGN(iommu_bus_base & dma_get_seg_boundary(dev), |
95 | PAGE_SIZE) >> PAGE_SHIFT; | 95 | PAGE_SIZE) >> PAGE_SHIFT; |
96 | boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, | 96 | boundary_size = ALIGN((unsigned long long)dma_get_seg_boundary(dev) + 1, |
97 | PAGE_SIZE) >> PAGE_SHIFT; | 97 | PAGE_SIZE) >> PAGE_SHIFT; |
98 | 98 | ||
99 | spin_lock_irqsave(&iommu_bitmap_lock, flags); | 99 | spin_lock_irqsave(&iommu_bitmap_lock, flags); |