diff options
| author | SeongJae Park <[email protected]> | 2022-07-14 17:04:58 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-17 17:14:27 -0700 |
| commit | ec1658f0f90c5b855ad590930bf057514581521d (patch) | |
| tree | eae277a5094c0109ef29fee18d7181f5b9626add /tools/perf/scripts/python | |
| parent | 4f2930c6718afbb6c5904cda6f6781a70c52a042 (diff) | |
mm/damon/lru_sort: fix potential memory leak in damon_lru_sort_init()
damon_lru_sort_init() returns an error when damon_select_ops() fails
without freeing 'ctx' which allocated before. This commit fixes the
potential memory leak by freeing 'ctx' under the situation.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 40e983cca927 ("mm/damon: introduce DAMON-based LRU-lists Sorting")
Signed-off-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions