diff options
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-rw-r--r-- | arch/x86/mm/pageattr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 4cf30dee8161..e89d24815f26 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -555,12 +555,10 @@ repeat: | |||
555 | if (!pte_val(old_pte)) { | 555 | if (!pte_val(old_pte)) { |
556 | if (!primary) | 556 | if (!primary) |
557 | return 0; | 557 | return 0; |
558 | 558 | WARN(1, KERN_WARNING "CPA: called for zero pte. " | |
559 | /* | 559 | "vaddr = %lx cpa->vaddr = %lx\n", address, |
560 | * Special error value returned, indicating that the mapping | 560 | *cpa->vaddr); |
561 | * did not exist at this address. | 561 | return -EINVAL; |
562 | */ | ||
563 | return -EFAULT; | ||
564 | } | 562 | } |
565 | 563 | ||
566 | if (level == PG_LEVEL_4K) { | 564 | if (level == PG_LEVEL_4K) { |