Skip to content

Commit f4b4f3e

Browse files
rpptakpm00
authored andcommitted
sparc64: add missing initialization of folio in tlb_batch_add()
Commit 1a10a44 ("sparc64: implement the new page table range API") missed initialization of folio variable in tlb_batch_add() which causes boot tests to crash. Add missing initialization. Link: https://lkml.kernel.org/r/20230904174350.GF3223@kernel.org Fixes: 1a10a44 ("sparc64: implement the new page table range API") Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org> Reported-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent d256d1c commit f4b4f3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/sparc/mm/tlb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr,
128128
goto no_cache_flush;
129129

130130
/* A real file page? */
131+
folio = page_folio(page);
131132
mapping = folio_flush_mapping(folio);
132133
if (!mapping)
133134
goto no_cache_flush;

0 commit comments

Comments
 (0)