diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-07-03 12:53:37 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-07-07 23:26:58 +0200 |
| commit | f2eee7e31ccd4bc87d047d8670cc2ec39cf36647 (patch) | |
| tree | 5d524ff3546b28a2c43768399eaa88ef34a4285b /kernel/time/timer_migration.c | |
| parent | 3dee6537e728bd8137fda6eaf859f26e685943f7 (diff) | |
timekeeping: Unwind aux clock sysfs children on failure
tk_aux_sysfs_init() creates one child kobject per auxiliary clock. If a
later child or sysfs group creation fails, the current error path only
puts the parent kobjects and leaves earlier children and groups behind.
Store the child kobjects during init and remove the successfully created
groups and kobjects on failure.
Fixes: 7b5ab04f035f ("timekeeping: Fix resource leak in tk_aux_sysfs_init() error paths")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260703165337.168445-1-dbgh9129@gmail.com
Diffstat (limited to 'kernel/time/timer_migration.c')
0 files changed, 0 insertions, 0 deletions
