diff options
author | Xu YiPing <xuyiping@hisilicon.com> | 2017-09-05 10:00:59 -0700 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2017-09-18 21:14:35 +0100 |
commit | bfb37a2c258470f68b1879c3fb24acf992b9823a (patch) | |
tree | 9342718e45d22cbb87a1450fe31077c336e8c0e1 /drivers/android | |
parent | 52d7f79173dc532076863f5d9762009f028f84f9 (diff) |
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: Xu YiPing <xuyiping@hislicon.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Diffstat (limited to 'drivers/android')
-rw-r--r-- | drivers/android/binder.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 810ff70104c1..7c9f9dde8397 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -2481,7 +2481,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); |