diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d8d48329cb82..89d7a2cae53b 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2078,7 +2078,9 @@ static int kvm_handle_bad_page(struct kvm *kvm, gfn_t gfn, pfn_t pfn) | |||
2078 | if (is_hwpoison_pfn(pfn)) { | 2078 | if (is_hwpoison_pfn(pfn)) { |
2079 | kvm_send_hwpoison_signal(kvm, gfn); | 2079 | kvm_send_hwpoison_signal(kvm, gfn); |
2080 | return 0; | 2080 | return 0; |
2081 | } | 2081 | } else if (is_fault_pfn(pfn)) |
2082 | return -EFAULT; | ||
2083 | |||
2082 | return 1; | 2084 | return 1; |
2083 | } | 2085 | } |
2084 | 2086 | ||