summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-07-03 14:46:01 +0100
committerMark Brown <broonie@kernel.org>2026-07-03 14:46:01 +0100
commitfec2d935311b2d3eae84837261a2e2d2cdb26079 (patch)
tree22f532c9dbe667a58d5fb5b351af2053718aa53a /samples
parent67cceaf02b3cd7fa4fda051411cf94f7c87e63fc (diff)
parent039892c35f9d8f5ea00d7c2ed1c25224f28b11d7 (diff)
downloadlinux-next-fec2d935311b2d3eae84837261a2e2d2cdb26079.tar.gz
linux-next-fec2d935311b2d3eae84837261a2e2d2cdb26079.zip
Merge branch 'mm-stable' of https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Diffstat (limited to 'samples')
-rw-r--r--samples/damon/mtier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c
index eb1143de8df1..3785b0c7ffb1 100644
--- a/samples/damon/mtier.c
+++ b/samples/damon/mtier.c
@@ -120,6 +120,9 @@ static struct damon_ctx *damon_sample_mtier_build_ctx(bool promote)
addr.end = promote ? node1_end_addr : node0_end_addr;
}
+ if (addr.start >= addr.end)
+ goto free_out;
+
range.start = addr.start;
range.end = addr.end;