mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
In livepatch_init(), if klp_enable_patch() fails, the previously created kobject and sysfs file are never cleaned up, causing a resource leak. Capture the return value and add proper cleanup on the error path. Signed-off-by: Rui Qi <qirui.001@bytedance.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260604083208.1071428-1-qirui.001@bytedance.com Signed-off-by: Petr Mladek <pmladek@suse.com> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| test_klp_atomic_replace.c | ||
| test_klp_callbacks_busy.c | ||
| test_klp_callbacks_demo.c | ||
| test_klp_callbacks_demo2.c | ||
| test_klp_callbacks_mod.c | ||
| test_klp_kprobe.c | ||
| test_klp_livepatch.c | ||
| test_klp_mod_patch.c | ||
| test_klp_mod_target.c | ||
| test_klp_shadow_vars.c | ||
| test_klp_state.c | ||
| test_klp_state2.c | ||
| test_klp_state3.c | ||
| test_klp_syscall.c | ||