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:
Родитель
3c33f5b99d
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче