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)
commit0937e3b025f70e33f018aa55ee8d32b8731730a7
treef8bed0ffeae83f15e02f6f60bd1d910d9791836b
parent4421f8f0fa02bc982b410cd773223cc280791c54
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