Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ec10528 authored by Xu YiPing's avatar Xu YiPing Committed by Todd Kjos
Browse files

FROMLIST: binder: fix an ret value override

(from https://patchwork.kernel.org/patch/9939409/

)

commit 372e3147df70 ("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

Change-Id: If7bd963ac7e67d135aa949133263aac27bf15d1a
Signed-off-by: default avatarXu YiPing <xuyiping@hislicon.com>
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent 86578a0f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2480,7 +2480,6 @@ static int binder_translate_handle(struct flat_binder_object *fp,
			     (u64)node->ptr);
		binder_node_unlock(node);
	} else {
		int ret;
		struct binder_ref_data dest_rdata;

		binder_node_unlock(node);