diff options
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r-- | arch/x86/mm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 82b41d56bb98..a97ee0801475 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -703,10 +703,10 @@ void __init zone_sizes_init(void) | |||
703 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); | 703 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); |
704 | 704 | ||
705 | #ifdef CONFIG_ZONE_DMA | 705 | #ifdef CONFIG_ZONE_DMA |
706 | max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN; | 706 | max_zone_pfns[ZONE_DMA] = min(MAX_DMA_PFN, max_low_pfn); |
707 | #endif | 707 | #endif |
708 | #ifdef CONFIG_ZONE_DMA32 | 708 | #ifdef CONFIG_ZONE_DMA32 |
709 | max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; | 709 | max_zone_pfns[ZONE_DMA32] = min(MAX_DMA32_PFN, max_low_pfn); |
710 | #endif | 710 | #endif |
711 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; | 711 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; |
712 | #ifdef CONFIG_HIGHMEM | 712 | #ifdef CONFIG_HIGHMEM |