diff options
-rw-r--r-- | arch/x86_64/kernel/pci-gart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c index 82a7c9bfdfa0..e0198da7451d 100644 --- a/arch/x86_64/kernel/pci-gart.c +++ b/arch/x86_64/kernel/pci-gart.c | |||
@@ -93,7 +93,7 @@ static unsigned long alloc_iommu(int size) | |||
93 | offset = find_next_zero_string(iommu_gart_bitmap,next_bit,iommu_pages,size); | 93 | offset = find_next_zero_string(iommu_gart_bitmap,next_bit,iommu_pages,size); |
94 | if (offset == -1) { | 94 | if (offset == -1) { |
95 | need_flush = 1; | 95 | need_flush = 1; |
96 | offset = find_next_zero_string(iommu_gart_bitmap,0,next_bit,size); | 96 | offset = find_next_zero_string(iommu_gart_bitmap,0,iommu_pages,size); |
97 | } | 97 | } |
98 | if (offset != -1) { | 98 | if (offset != -1) { |
99 | set_bit_string(iommu_gart_bitmap, offset, size); | 99 | set_bit_string(iommu_gart_bitmap, offset, size); |