Skip to content

Commit

Permalink
livepatch: fix uninitialized return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josh Poimboeuf authored and Jiri Kosina committed Jan 21, 2015
1 parent 3c33f5b commit dbed7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/livepatch/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbed7dd

Please sign in to comment.