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 <redacted>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Thread (9 messages)
9 messages,
4 authors,
last reply 2026-06-09