]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
alpha: add missing address argument in call to page_table_check_pte_clear()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 13 Feb 2026 07:35:14 +0000 (08:35 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2026 18:44:31 +0000 (10:44 -0800)
After the merge of the alpha and mm trees, this code does not compile,
as a parameter is missing in a call to page_table_check_pte_clear().

The parameter was re-added in commit d7b4b67eb6b3 ("mm/page_table_check:
reinstate address parameter in [__]page_table_check_pte_clear()").
The alpha-specific code was newly added in commit dd5712f3379c ("alpha:
fix user-space corruption during memory compaction").

Fixes: 4cff5c05e076 ("Merge tag 'mm-stable-2026-02-11-19-22' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Magnus Lindholm <linmag7@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/pgtable.h

index c9508ec37efc43c1ff63a17baba2d1787a32d8ae..e9368c54be452ac7aca8ba4c50275b852df82b18 100644 (file)
@@ -289,7 +289,7 @@ static inline pte_t ptep_clear_flush(struct vm_area_struct *vma,
        struct mm_struct *mm = vma->vm_mm;
        pte_t pte = ptep_get_and_clear(mm, addr, ptep);
 
-       page_table_check_pte_clear(mm, pte);
+       page_table_check_pte_clear(mm, addr, pte);
        migrate_flush_tlb_page(vma, addr);
        return pte;
 }