diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index 2dd0cd0d2627..e8c389ad3226 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -409,8 +409,10 @@ static int damon_lru_sort_turn(bool on) { int err; - if (!on) - return damon_stop(&ctx, 1); + if (!on) { + damon_stop(&ctx, 1); + return 0; + } err = damon_lru_sort_apply_parameters(); if (err)