提交 dbed7dda 编写于 作者: J Josh Poimboeuf 提交者: Jiri Kosina

livepatch: fix uninitialized return value

Fix a potentially uninitialized return value in klp_enable_func().
Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: NMiroslav Benes <mbenes@suse.cz>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 3c33f5b9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册