riscv: fix pfn_to_virt err in do_page_fault().
authorLiu Shaohua <liush@allwinnertech.com>
Mon, 26 Oct 2020 12:26:54 +0000 (20:26 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 6 Nov 2020 05:13:44 +0000 (21:13 -0800)
commitbcacf5f6f239a9e60287680514f392748cb4ec39
tree5b02d2cc5320929cf04dd414e8f82475ce0d8bbe
parent79605f1394261995c2b955c906a5a20fb27cdc84
riscv: fix pfn_to_virt err in do_page_fault().

The argument to pfn_to_virt() should be pfn not the value of CSR_SATP.

Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: liush <liush@allwinnertech.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/fault.c