diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c
index 58bcd2f5b02aea06e161e2ab0905f30f299728b6..48e434cd43d8e87e50672248f8a0e5a3d00c1f0d 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 =