Skip to content

Commit ebd4acc

Browse files
Alexandre Ghitidennisszhou
authored andcommitted
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: 7a92fc8 ("mm: Introduce flush_cache_vmap_early()") Signed-off-by: Alexandre Ghiti <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
1 parent 41bccc9 commit ebd4acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/tlbflush.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static inline void local_flush_tlb_range_asid(unsigned long start,
6868

6969
void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
7070
{
71-
local_flush_tlb_range_asid(start, end, PAGE_SIZE, FLUSH_TLB_NO_ASID);
71+
local_flush_tlb_range_asid(start, end - start, PAGE_SIZE, FLUSH_TLB_NO_ASID);
7272
}
7373

7474
static void __ipi_flush_tlb_all(void *info)

0 commit comments

Comments
 (0)