diff options
| -rw-r--r-- | arch/x86/mm/pageattr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 2440814b0069..3dd6afd2c0e5 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
| @@ -1122,8 +1122,10 @@ static int __cpa_process_fault(struct cpa_data *cpa, unsigned long vaddr, | |||
| 1122 | /* | 1122 | /* |
| 1123 | * Ignore all non primary paths. | 1123 | * Ignore all non primary paths. |
| 1124 | */ | 1124 | */ |
| 1125 | if (!primary) | 1125 | if (!primary) { |
| 1126 | cpa->numpages = 1; | ||
| 1126 | return 0; | 1127 | return 0; |
| 1128 | } | ||
| 1127 | 1129 | ||
| 1128 | /* | 1130 | /* |
| 1129 | * Ignore the NULL PTE for kernel identity mapping, as it is expected | 1131 | * Ignore the NULL PTE for kernel identity mapping, as it is expected |
