[PATCH v2 0/1] fix initialization and parameter issues
From: yahia
Date: Fri Jun 19 2026 - 20:36:09 EST
From: yahia ahmed <yahia.a.abdrabou@xxxxxxxxx>
Fixed a potential memory leak by removing the
early return to let the function continue with
out and set the ctx variable to NULL to prevent
a use after free, In damon_reclaim_init() function
if an error is returned, the ctx variable is never
freed.
~~~
Changes in v2:
- Remove early return
- Set ctx to NULL to avoid a use after free
- Fix typo
yahia (1):
mm/damon/reclaim: fix potential memory leak
mm/damon/reclaim.c | 5 +++++
1 file changed, 5 insertions(+)
--
2.54.0