summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJackie Liu <liuyun01@kylinos.cn>2026-03-31 18:15:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-04-18 00:10:51 -0700
commite04ed278d25bf15769800bf6e35c6737f137186f (patch)
treeff3ba560b7c3b95002d44678c1e2cdeb97ed0744 /tools/perf/scripts/python/stackcollapse.py
parent33c3f6c2b48cd84b441dba1ee3e62290e53930f4 (diff)
mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()
Destroy the DAMON context and reset the global pointer when damon_start() fails. Otherwise, the context allocated by damon_stat_build_ctx() is leaked, and the stale damon_stat_context pointer will be overwritten on the next enable attempt, making the old allocation permanently unreachable. Link: https://lore.kernel.org/20260331101553.88422-1-liu.yun@linux.dev Fixes: 369c415e6073 ("mm/damon: introduce DAMON_STAT module") Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: <stable@vger.kernel.org> # 6.17.x Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions