android_kernel_motorola_sm6375/samples/livepatch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nicholas Mc Guire 5f30b2e823 livepatch: check kzalloc return values
kzalloc() return should always be checked - notably in example code
where this may be seen as reference. On failure of allocation in
livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous
allocation is freed (thanks to Petr Mladek <[email protected]> for
catching this) and NULL returned.

Signed-off-by: Nicholas Mc Guire <[email protected]>
Fixes: 439e7271dc ("livepatch: introduce shadow variable API")
Acked-by: Joe Lawrence <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Acked-by: Miroslav Benes <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
2018-12-18 10:23:07 +01:00
..
livepatch-callbacks-busymod.c
livepatch-callbacks-demo.c
livepatch-callbacks-mod.c
livepatch-sample.c
livepatch-shadow-fix1.c livepatch: check kzalloc return values 2018-12-18 10:23:07 +01:00
livepatch-shadow-fix2.c
livepatch-shadow-mod.c livepatch: check kzalloc return values 2018-12-18 10:23:07 +01:00
Makefile