summaryrefslogtreecommitdiff
path: root/arch/riscv/mm/extable.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/mm/extable.c')
-rw-r--r--arch/riscv/mm/extable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/mm/extable.c b/arch/riscv/mm/extable.c
index 7aed9178d365..2fc729422151 100644
--- a/arch/riscv/mm/extable.c
+++ b/arch/riscv/mm/extable.c
@@ -15,9 +15,9 @@ int fixup_exception(struct pt_regs *regs)
{
const struct exception_table_entry *fixup;
- fixup = search_exception_tables(regs->sepc);
+ fixup = search_exception_tables(regs->epc);
if (fixup) {
- regs->sepc = fixup->fixup;
+ regs->epc = fixup->fixup;
return 1;
}
return 0;