diff options
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r-- | arch/x86_64/mm/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 47928399e38a..3e16fe08150e 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -655,8 +655,10 @@ void __init reserve_bootmem_generic(unsigned long phys, unsigned len) | |||
655 | #else | 655 | #else |
656 | reserve_bootmem(phys, len); | 656 | reserve_bootmem(phys, len); |
657 | #endif | 657 | #endif |
658 | if (phys+len <= MAX_DMA_PFN*PAGE_SIZE) | 658 | if (phys+len <= MAX_DMA_PFN*PAGE_SIZE) { |
659 | dma_reserve += len / PAGE_SIZE; | 659 | dma_reserve += len / PAGE_SIZE; |
660 | set_dma_reserve(dma_reserve); | ||
661 | } | ||
660 | } | 662 | } |
661 | 663 | ||
662 | int kern_addr_valid(unsigned long addr) | 664 | int kern_addr_valid(unsigned long addr) |