[PATCH 6.16.y 2/2] mm/damon/sysfs: fix use-after-free in state_show()