diff --git a/mm/damon/core.c b/mm/damon/core.c index b543d1202c9d..ce791b544b5d 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -3068,7 +3068,7 @@ static int walk_system_ram(struct resource *res, void *arg) if (a->end - a->start < resource_size(res)) { a->start = res->start; - a->end = res->end; + a->end = res->end + 1; } return 0; }