forked from luck/tmp_suning_uos_patched
270f7806d3
In some cases, when an error occurs during testing and the main test routine returns, a memory leak occurs via leaving previously registered shadow variables allocated in the kernel as well as shadow_ptr list elements. From now on, in case of error, remove all allocated shadow variables and shadow_ptr struct elements. Signed-off-by: Yannick Cote <ycote@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20200603182058.109470-5-ycote@redhat.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_livepatch.c | ||
test_klp_shadow_vars.c | ||
test_klp_state.c | ||
test_klp_state2.c | ||
test_klp_state3.c |