提交 52b81611 编写于 作者: X Xu YiPing 提交者: Greg Kroah-Hartman

binder: fix an ret value override

commit 372e3147 ("binder: guarantee txn complete / errors delivered
in-order") incorrectly defined a local ret value.  This ret value will
be invalid when out of the if block

Fixes: 372e3147 ("binder: refactor binder ref inc/dec for thread safety")
Signed-off-by: NXu YiPing <xuyiping@hislicon.com>
Signed-off-by: NTodd Kjos <tkjos@google.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1c363eae
...@@ -2326,7 +2326,6 @@ static int binder_translate_handle(struct flat_binder_object *fp, ...@@ -2326,7 +2326,6 @@ static int binder_translate_handle(struct flat_binder_object *fp,
(u64)node->ptr); (u64)node->ptr);
binder_node_unlock(node); binder_node_unlock(node);
} else { } else {
int ret;
struct binder_ref_data dest_rdata; struct binder_ref_data dest_rdata;
binder_node_unlock(node); binder_node_unlock(node);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册