aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-07-14 17:04:58 +0000
committerakpm <akpm@linux-foundation.org>2022-07-17 17:14:27 -0700
commitec1658f0f90c5b855ad590930bf057514581521d (patch)
treeeae277a5094c0109ef29fee18d7181f5b9626add /include/linux/mmzone.h
parentselftests/vm: only run 128TBswitch with 5-level paging (diff)
downloadwireguard-linux-ec1658f0f90c5b855ad590930bf057514581521d.tar.xz
wireguard-linux-ec1658f0f90c5b855ad590930bf057514581521d.zip
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/20220714170458.49727-1-sj@kernel.org Fixes: 40e983cca927 ("mm/damon: introduce DAMON-based LRU-lists Sorting") Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
0 files changed, 0 insertions, 0 deletions