riscv: Fix wrong size passed to local_flush_tlb_range_asid()
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 23 Jan 2024 13:27:30 +0000 (14:27 +0100)
committerDennis Zhou <dennis@kernel.org>
Mon, 29 Jan 2024 08:53:19 +0000 (00:53 -0800)
commitebd4acc0cbeae9efea15993b11b05bd32942f3f0
tree69b605a9d5eca1afa5e1211dbbef7006eef283db
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3
riscv: Fix wrong size passed to local_flush_tlb_range_asid()

local_flush_tlb_range_asid() takes the size as argument, not the end of
the range to flush, so fix this by computing the size from the end and
the start of the range.

Fixes: 7a92fc8b4d20 ("mm: Introduce flush_cache_vmap_early()")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
arch/riscv/mm/tlbflush.c