aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 543c446bf4ed..1c9dc46da3db 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2527,7 +2527,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
2527 ret = VM_FAULT_HWPOISON; 2527 ret = VM_FAULT_HWPOISON;
2528 } else { 2528 } else {
2529 print_bad_pte(vma, address, orig_pte, NULL); 2529 print_bad_pte(vma, address, orig_pte, NULL);
2530 ret = VM_FAULT_OOM; 2530 ret = VM_FAULT_SIGBUS;
2531 } 2531 }
2532 goto out; 2532 goto out;
2533 } 2533 }
@@ -2923,7 +2923,7 @@ static int do_nonlinear_fault(struct mm_struct *mm, struct vm_area_struct *vma,
2923 * Page table corrupted: show pte and kill process. 2923 * Page table corrupted: show pte and kill process.
2924 */ 2924 */
2925 print_bad_pte(vma, address, orig_pte, NULL); 2925 print_bad_pte(vma, address, orig_pte, NULL);
2926 return VM_FAULT_OOM; 2926 return VM_FAULT_SIGBUS;
2927 } 2927 }
2928 2928
2929 pgoff = pte_to_pgoff(orig_pte); 2929 pgoff = pte_to_pgoff(orig_pte);