summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2015-01-20 16:07:55 -0600
committerJiri Kosina <jkosina@suse.cz>2015-01-21 15:22:48 +0100
commitdbed7ddab967550d1181633e8ac7905808f29a94 (patch)
tree36c305e3e651ab8af9f42a7b8b53382d3600d832 /kernel/livepatch
parent3c33f5b99d688deafd21d4a770303691c7c3a320 (diff)
downloadlinux-stable-dbed7ddab967550d1181633e8ac7905808f29a94.tar.gz
linux-stable-dbed7ddab967550d1181633e8ac7905808f29a94.tar.bz2
linux-stable-dbed7ddab967550d1181633e8ac7905808f29a94.zip
livepatch: fix uninitialized return value
Fix a potentially uninitialized return value in klp_enable_func(). Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c2
1 files changed, 1 insertions, 1 deletions
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);