FROMLIST: binder: refactor binder_pop_transaction
authorTodd Kjos <tkjos@google.com>
Fri, 31 Mar 2017 01:02:13 +0000 (18:02 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 26 Feb 2019 11:36:32 +0000 (11:36 +0000)
commit7323366b2dc1932e9b2dea048b2ae4aebf741b22
treeb9173db4e9aa97e79bb960ebf7f16bdea866b44a
parent7d94b2c7ff7a911753c734c1efc2c25d20a92df9
FROMLIST: binder: refactor binder_pop_transaction

(from https://lkml.org/lkml/2017/6/29/754)

binder_pop_transaction needs to be split into 2 pieces to
to allow the proc lock to be held on entry to dequeue the
transaction stack, but no lock when kfree'ing the transaction.

Split into binder_pop_transaction_locked and binder_free_transaction
(the actual locks are still to be added).

Change-Id: I848ae994cc27b3cd083cff2dbd1071762784f4a3
Test: tested manually
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c