diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 12d9a2f7942efd..8607316d103715 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2530,7 +2530,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm, if (++unmapped <= khugepaged_max_ptes_swap) { continue; } else { - ret = SCAN_EXCEED_SWAP_PTE; + result = SCAN_EXCEED_SWAP_PTE; goto out_unmap; } }