mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08: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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user