linux_dsm_epyc7002/lib/livepatch
Joe Lawrence 86e43f23c1 livepatch: return -ENOMEM on ptr_id() allocation failure
Fixes the following smatch warning:

  lib/livepatch/test_klp_shadow_vars.c:47 ptr_id() warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Petr Mladek <pmladek@suse.com>
2019-02-06 11:00:58 +01:00
..
Makefile selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_atomic_replace.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_callbacks_busy.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_callbacks_demo2.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_callbacks_demo.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_callbacks_mod.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_livepatch.c selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
test_klp_shadow_vars.c livepatch: return -ENOMEM on ptr_id() allocation failure 2019-02-06 11:00:58 +01:00