alistair23-linux/kernel/livepatch
Petr Mladek 89a9a1c1c8 livepatch: __klp_disable_patch() should never be called for disabled patches
__klp_disable_patch() should never be called when the patch is not
enabled. Let's add the same warning that we have in __klp_enable_patch().

This allows to remove the check when calling klp_pre_unpatch_callback().
It was strange anyway because it repeatedly checked per-patch flag
for each patched object.

Signed-off-by: Petr Mladek <pmladek@suse.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2017-10-26 14:58:50 +02:00
..
core.c livepatch: __klp_disable_patch() should never be called for disabled patches 2017-10-26 14:58:50 +02:00
core.h livepatch: Correctly call klp_post_unpatch_callback() in error paths 2017-10-26 14:58:50 +02:00
Kconfig livepatch: Make livepatch dependent on !TRIM_UNUSED_KSYMS 2017-05-27 00:27:37 +02:00
Makefile livepatch: introduce shadow variable API 2017-09-14 23:06:12 +02:00
patch.c livepatch: add (un)patch callbacks 2017-10-19 10:08:56 +02:00
patch.h livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00
shadow.c livepatch: __klp_shadow_get_or_alloc() is local to shadow.c 2017-09-15 19:17:13 +02:00
transition.c livepatch: add transition notices 2017-10-19 10:09:01 +02:00
transition.h livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00