summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2026-03-07 11:49:14 -0800
committerAndrew Morton <akpm@linux-foundation.org>2026-04-05 13:53:22 -0700
commit23754a36cd1ce888a136c762080c89e4d7b364d9 (patch)
treed08ec8948f32f2f3ddb266897f69bde7ecfd7095 /tools/perf/scripts/python
parentf05e253637837b603682173ed6bd0bc873dc0496 (diff)
mm/damon/core: use time_after_eq() in kdamond_fn()
damon_ctx->passed_sample_intervals and damon_ctx->next_*_sis are unsigned long. Those are compared in kdamond_fn() using normal comparison operators. It is unsafe from overflow. Use time_after_eq(), which is safe from overflows when correctly used, instead. Link: https://lkml.kernel.org/r/20260307194915.203169-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions