[PATCH 6.12 079/140] mm/damon/sysfs: fix use-after-free in state_show()