diff options
Diffstat (limited to 'arch/x86/mm/pat.c')
-rw-r--r-- | arch/x86/mm/pat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index e0ab173b6974..21bc1f787ae2 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -641,10 +641,11 @@ static int reserve_pfn_range(u64 paddr, unsigned long size, pgprot_t *vma_prot, | |||
641 | is_ram = pat_pagerange_is_ram(paddr, paddr + size); | 641 | is_ram = pat_pagerange_is_ram(paddr, paddr + size); |
642 | 642 | ||
643 | /* | 643 | /* |
644 | * reserve_pfn_range() doesn't support RAM pages. | 644 | * reserve_pfn_range() doesn't support RAM pages. Maintain the current |
645 | * behavior with RAM pages by returning success. | ||
645 | */ | 646 | */ |
646 | if (is_ram != 0) | 647 | if (is_ram != 0) |
647 | return -EINVAL; | 648 | return 0; |
648 | 649 | ||
649 | ret = reserve_memtype(paddr, paddr + size, want_flags, &flags); | 650 | ret = reserve_memtype(paddr, paddr + size, want_flags, &flags); |
650 | if (ret) | 651 | if (ret) |