Files
linux/lib
Yannick Cote 270f7806d3 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 <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Kamalesh Babulal <[email protected]>
Acked-by: Miroslav Benes <[email protected]>
Acked-by: Joe Lawrence <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
2020-06-08 10:55:10 +02:00
..
2019-09-20 09:06:26 -07:00
2020-03-21 15:24:03 +01:00
…
…
2018-08-16 12:14:42 -07:00
…
…
…
…
…
…
…
…
…
…
…
2018-10-16 13:45:44 +02:00
…
…
2018-06-27 18:58:49 +03:00
2018-10-15 16:31:29 -04:00
…