diff options
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-rw-r--r-- | arch/x86/mm/pageattr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 01be9ec3bf79..a1f0e1d0ddc2 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -1125,8 +1125,14 @@ static int populate_pgd(struct cpa_data *cpa, unsigned long addr) | |||
1125 | static int __cpa_process_fault(struct cpa_data *cpa, unsigned long vaddr, | 1125 | static int __cpa_process_fault(struct cpa_data *cpa, unsigned long vaddr, |
1126 | int primary) | 1126 | int primary) |
1127 | { | 1127 | { |
1128 | if (cpa->pgd) | 1128 | if (cpa->pgd) { |
1129 | /* | ||
1130 | * Right now, we only execute this code path when mapping | ||
1131 | * the EFI virtual memory map regions, no other users | ||
1132 | * provide a ->pgd value. This may change in the future. | ||
1133 | */ | ||
1129 | return populate_pgd(cpa, vaddr); | 1134 | return populate_pgd(cpa, vaddr); |
1135 | } | ||
1130 | 1136 | ||
1131 | /* | 1137 | /* |
1132 | * Ignore all non primary paths. | 1138 | * Ignore all non primary paths. |