diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-01-20 23:07:55 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-01-21 15:22:48 +0100 |
commit | dbed7ddab967550d1181633e8ac7905808f29a94 (patch) | |
tree | 36c305e3e651ab8af9f42a7b8b53382d3600d832 /kernel/livepatch | |
parent | livepatch: support for repatching a function (diff) | |
download | linux-dbed7ddab967550d1181633e8ac7905808f29a94.tar.xz linux-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.c | 2 |
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); |