mm-damon-sysfs-dealloc-commit-test-ctx-always.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/sysfs: dealloc commit test ctx always
has been removed from the -mm tree. Its filename was
mm-damon-sysfs-dealloc-commit-test-ctx-always.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon/sysfs: dealloc commit test ctx always
Date: Fri, 3 Oct 2025 13:14:55 -0700
The damon_ctx for testing online DAMON parameters commit inputs is deallocated only when the test fails. This means memory is leaked for every successful online DAMON parameters commit. Fix the leak by always deallocating it.
---
mm/damon/sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/damon/sysfs.c renamed from mm/damon/sysfs.c~mm-damon-sysfs-dealloc-commit-test-ctx-always +2 -3
@@ -1476,12 +1476,11 @@ static int damon_sysfs_commit_input(voidif (!test_ctx)return -ENOMEM ; err =damon_commit_ctx (test_ctx, param_ctx); -if (err) { -damon_destroy_ctx (test_ctx); +if (err) goto out; - } err =damon_commit_ctx (kdamond->damon_ctx, param_ctx); out: +damon_destroy_ctx (test_ctx);damon_destroy_ctx (param_ctx);return err; }
_
Patches currently in -mm which might be from [email protected] are
mm-damon-core-fix-list_add_tail-call-on-damon_call.patch mm-damon-core-use-damos_commit_quota_goal-for-new-goal-commit.patch mm-zswap-remove-unnecessary-dlen-writes-for-incompressible-pages.patch mm-zswap-fix-typos-s-zwap-zswap.patch mm-zswap-s-red-black-tree-xarray.patch docs-admin-guide-mm-zswap-s-red-black-tree-xarray.patch