linux-sg2042/samples/livepatch
Petr Mladek f46e49a9cc livepatch: Handle allocation failure in the sample of shadow variable API
klp_shadow_alloc() is not handled in the sample of shadow variable API.
It is not strictly necessary because livepatch_fix1_dummy_free() is
able to handle the potential failure. But it is an example and it should
use the API a clean way.

Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2020-01-17 11:12:06 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
livepatch-callbacks-busymod.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
livepatch-callbacks-demo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
livepatch-callbacks-mod.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
livepatch-sample.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
livepatch-shadow-fix1.c livepatch: Handle allocation failure in the sample of shadow variable API 2020-01-17 11:12:06 +01:00
livepatch-shadow-fix2.c livepatch/sample: Use the right type for the leaking data pointer 2020-01-17 11:12:06 +01:00
livepatch-shadow-mod.c livepatch/sample: Use the right type for the leaking data pointer 2020-01-17 11:12:06 +01:00