diff options
-rw-r--r-- | arch/x86/mm/pageattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 7d9517abc9af..f7823a172868 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -542,7 +542,7 @@ static int __change_page_attr(struct cpa_data *cpa, int primary) | |||
542 | repeat: | 542 | repeat: |
543 | kpte = lookup_address(address, &level); | 543 | kpte = lookup_address(address, &level); |
544 | if (!kpte) | 544 | if (!kpte) |
545 | return primary ? -EINVAL : 0; | 545 | return 0; |
546 | 546 | ||
547 | old_pte = *kpte; | 547 | old_pte = *kpte; |
548 | if (!pte_val(old_pte)) { | 548 | if (!pte_val(old_pte)) { |