diff options
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 1faae5fc1c01..5337ca0ea7b9 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -424,7 +424,7 @@ void __init mem_init(void) | |||
424 | 424 | ||
425 | #ifdef CONFIG_SWIOTLB | 425 | #ifdef CONFIG_SWIOTLB |
426 | if (!iommu_aperture && | 426 | if (!iommu_aperture && |
427 | (end_pfn >= 0xffffffff>>PAGE_SHIFT || force_iommu)) | 427 | ((end_pfn-1) >= 0xffffffff>>PAGE_SHIFT || force_iommu)) |
428 | swiotlb = 1; | 428 | swiotlb = 1; |
429 | if (swiotlb) | 429 | if (swiotlb) |
430 | swiotlb_init(); | 430 | swiotlb_init(); |