|
@@ -1125,8 +1125,14 @@ static int populate_pgd(struct cpa_data *cpa, unsigned long addr)
|
|
|
static int __cpa_process_fault(struct cpa_data *cpa, unsigned long vaddr,
|
|
|
int primary)
|
|
|
{
|
|
|
- if (cpa->pgd)
|
|
|
+ if (cpa->pgd) {
|
|
|
+ /*
|
|
|
+ * Right now, we only execute this code path when mapping
|
|
|
+ * the EFI virtual memory map regions, no other users
|
|
|
+ * provide a ->pgd value. This may change in the future.
|
|
|
+ */
|
|
|
return populate_pgd(cpa, vaddr);
|
|
|
+ }
|
|
|
|
|
|
/*
|
|
|
* Ignore all non primary paths.
|