Files
linux/kernel/time
Malaya Kumar Rout eddfded419 timers/migration: Fix memory leak in tmigr_setup_groups() error path
When the WARN_ON_ONCE(i >= tmigr_hierarchy_levels) assertion triggers,
the function returns -EINVAL without freeing the 'stack' memory allocated
via kzalloc_objs() at the beginning of the function.

Add kfree(stack) before returning to prevent the memory leak.

Fixes: 6c181b5667 ("timers/migration: Convert "while" loops to use "for"")
Signed-off-by: Malaya Kumar Rout <malayarout91@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260704085533.87098-1-malayarout91@gmail.com
2026-07-07 23:26:58 +02:00
..
2026-02-24 08:41:51 +01:00
2026-03-26 15:44:23 +01:00
2025-06-19 14:28:24 +02:00
2020-10-30 21:57:07 +01:00
2026-01-11 06:09:11 -10:00
2026-06-02 21:27:25 +02:00
2026-06-02 21:27:25 +02:00