Skip to content

Commit e2c79b4

Browse files
Revert "riscv: mm: accelerate pagefault when badaccess"
I accidentally picked up an earlier version of this patch, which had already landed via mm. The patch I picked up contains a bug, which I kept as I thought it was a fix. So let's just revert it. This reverts commit 4c6c002. Fixes: 4c6c002 ("riscv: mm: accelerate pagefault when badaccess") Reviewed-by: Kefeng Wang <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 994af18 commit e2c79b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/mm/fault.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ void handle_page_fault(struct pt_regs *regs)
293293
if (unlikely(access_error(cause, vma))) {
294294
vma_end_read(vma);
295295
count_vm_vma_lock_event(VMA_LOCK_SUCCESS);
296-
tsk->thread.bad_cause = SEGV_ACCERR;
297-
bad_area_nosemaphore(regs, code, addr);
296+
tsk->thread.bad_cause = cause;
297+
bad_area_nosemaphore(regs, SEGV_ACCERR, addr);
298298
return;
299299
}
300300

0 commit comments

Comments
 (0)