OSDN Git Service

ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR
author宋金时 <songjinshi@xiaomi.com>
Thu, 10 May 2018 02:05:03 +0000 (02:05 +0000)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:22:19 +0000 (18:22 +0800)
commit8e2367b6ba4f0b70c371f1cc17a275916a3318ac
tree9c814caaff7f5cd3e2586dcb347d3835947207cb
parent4037f7eec58125022291484e5568bda034700861
ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR

When to execute binder_stat_br the e->cmd has been modifying as BR_OK
instead of the original return error cmd, in fact we want to know the
original return error, such as BR_DEAD_REPLY or BR_FAILED_REPLY, etc.
instead of always BR_OK, in order to avoid the value of the e->cmd is
always BR_OK, so we need assign the value of the e->cmd to cmd before
e->cmd = BR_OK.

Signed-off-by: songjinshi <songjinshi@xiaomi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c