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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 14:06:48 +0000 (16:06 +0200)
commit838d5565669aa5bb7deb605684a5970d51d5eaf6
tree6bda5f8daa9642de1c78923a4c653c68c921b60f
parent1190b4e38f97023154e6b3bef61b251aa5f970d0
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