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>
This commit is contained in:
Josh Poimboeuf 2015-01-20 16:07:55 -06:00 committed by Jiri Kosina
parent 3c33f5b99d
commit dbed7ddab9

View File

@ -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);