]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: simplify disable error path
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 9 Feb 2015 17:31:13 +0000 (11:31 -0600)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Feb 2015 20:06:38 +0000 (21:06 +0100)
commit7c86d60c5b9362d960525e95add7f3ed89d6f305
treef8bed0ffeae83f15e02f6f60bd1d910d9791836b
parentd144a6c86643e511c958a4ff4e7448953609edc9
livepatch: simplify disable error path

If registering the function with ftrace has previously succeeded,
unregistering will almost never fail.  Even if it does, it's not a fatal
error.  We can still carry on and disable the klp_func from being used
by removing it from the klp_ops func stack.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c