summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/damon/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c
index 58bcd2f5b02a..48e434cd43d8 100644
--- a/mm/damon/sysfs.c
+++ b/mm/damon/sysfs.c
@@ -2345,7 +2345,7 @@ static void damon_sysfs_kdamond_release(struct kobject *kobj)
if (kdamond->damon_ctx)
damon_destroy_ctx(kdamond->damon_ctx);
- kfree(container_of(kobj, struct damon_sysfs_kdamond, kobj));
+ kfree(kdamond);
}
static struct kobj_attribute damon_sysfs_kdamond_state_attr =