OSDN Git Service

binder: fix incorrect cmd to binder_stat_br
authorTodd Kjos <tkjos@android.com>
Tue, 8 Aug 2017 22:48:36 +0000 (15:48 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:22:19 +0000 (18:22 +0800)
commit4037f7eec58125022291484e5568bda034700861
tree933f282aa2372932e08f67e207a5f685173e1887
parentead6235132f5e1e4ea86526e64d93e09d9a7cc9a
binder: fix incorrect cmd to binder_stat_br

commit 26549d177410 ("binder: guarantee txn complete / errors delivered
in-order") passed the locally declared and undefined cmd
to binder_stat_br() which results in a bogus cmd field in a trace
event and BR stats are incremented incorrectly.

Change to use e->cmd which has been initialized.

Signed-off-by: Todd Kjos <tkjos@google.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 26549d177410 ("binder: guarantee txn complete / errors delivered in-order")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c