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 <>
Reviewed-by: Miroslav Benes <>
Reviewed-by: Petr Mladek <>
Signed-off-by: Jiri Kosina <>
1 file changed