mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
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:
parent
3c33f5b99d
commit
dbed7ddab9
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ static int klp_enable_func(struct klp_func *func)
|
||||||
|
|
||||||
func->state = KLP_ENABLED;
|
func->state = KLP_ENABLED;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
list_del_rcu(&func->stack_node);
|
list_del_rcu(&func->stack_node);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue