From: Josh Poimboeuf Date: Tue, 20 Jan 2015 22:07:55 +0000 (-0600) Subject: livepatch: fix uninitialized return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbed7ddab967550d1181633e8ac7905808f29a94;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git livepatch: fix uninitialized return value Fix a potentially uninitialized return value in klp_enable_func(). Signed-off-by: Josh Poimboeuf Reviewed-by: Miroslav Benes Signed-off-by: Jiri Kosina --- diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index bc05d390ce85..9adf86bfbcd5 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c @@ -410,7 +410,7 @@ static int klp_enable_func(struct klp_func *func) func->state = KLP_ENABLED; - return ret; + return 0; err: list_del_rcu(&func->stack_node);