kernel-fxtec-pro1x/kernel/livepatch
Petr Mladek e679af627f livepatch: Cancel transition a safe way for immediate patches
klp_init_transition() does not set func->transition for immediate patches.
Then klp_ftrace_handler() could use the new code immediately. As a result,
it is not safe to put the livepatch module in klp_cancel_transition().

This patch reverts most of the last minute changes klp_cancel_transition().
It keeps the warning about a misuse because it still makes sense.

Fixes: 3ec24776bf ("livepatch: allow removal of a disabled patch")
Signed-off-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2017-04-11 20:54:27 +02:00
..
core.c livepatch: make klp_mutex proper part of API 2017-03-08 14:40:53 +01:00
core.h livepatch: make klp_mutex proper part of API 2017-03-08 14:40:53 +01:00
Kconfig livepatch: rename config to CONFIG_LIVEPATCH 2015-02-04 11:25:51 +01:00
Makefile livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00
patch.c livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00
patch.h livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00
transition.c livepatch: Cancel transition a safe way for immediate patches 2017-04-11 20:54:27 +02:00
transition.h livepatch: change to a per-task consistency model 2017-03-08 09:36:21 +01:00