diff options
author | Petr Mladek <pmladek@suse.com> | 2020-01-16 16:31:45 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-01-17 11:12:06 +0100 |
commit | f46e49a9cc3814f3564477f0fffc00e0a2bc9e80 (patch) | |
tree | 4b9fbbe6954225043b3b2f4261ae861b16119d55 /kernel/bpf/bpf_lru_list.h | |
parent | be6da98425b69388ed31b18bd2497f826116f29b (diff) | |
download | linux-f46e49a9cc3814f3564477f0fffc00e0a2bc9e80.tar.gz linux-f46e49a9cc3814f3564477f0fffc00e0a2bc9e80.tar.bz2 linux-f46e49a9cc3814f3564477f0fffc00e0a2bc9e80.zip |
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>
Diffstat (limited to 'kernel/bpf/bpf_lru_list.h')
0 files changed, 0 insertions, 0 deletions