aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/livepatch/README
diff options
context:
space:
mode:
authorYannick Cote <ycote@redhat.com>2020-06-03 14:20:58 -0400
committerPetr Mladek <pmladek@suse.com>2020-06-08 10:55:10 +0200
commit270f7806d3b91b9c71fa8fe66f7dcc2d6587694e (patch)
treebe5f0b12f79c3e150833c3bb3c8f8d409b09ef0d /tools/testing/selftests/livepatch/README
parentselftests/livepatch: more verification in test-klp-shadow-vars (diff)
downloadlinux-dev-270f7806d3b91b9c71fa8fe66f7dcc2d6587694e.tar.xz
linux-dev-270f7806d3b91b9c71fa8fe66f7dcc2d6587694e.zip
selftests/livepatch: fix mem leaks in test-klp-shadow-vars
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
Diffstat (limited to 'tools/testing/selftests/livepatch/README')
0 files changed, 0 insertions, 0 deletions