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: 3ec24776bfd0 ("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
..
2015-11-19 17:51:48 +01:00
2017-01-12 07:01:56 -07:00
2015-11-23 09:44:58 +01:00
2017-02-22 10:30:38 -08:00
2017-02-22 17:08:33 -08:00
2016-02-16 13:04:58 -05:00
2017-02-27 18:43:47 -08:00
2016-03-01 20:36:56 +01:00
2016-12-22 22:58:37 -05:00
2017-02-10 11:15:08 +01:00