OSDN Git Service

binder: add function to copy binder object from buffer
authorTodd Kjos <tkjos@android.com>
Fri, 8 Feb 2019 18:35:16 +0000 (10:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 09:43:57 +0000 (10:43 +0100)
commit7a67a39320dfba4b36d3be5dae4581194e650316
tree2614f6173c8debff511de456afccf88ad7baef66
parent8ced0c6231ead26eca8cb416dcb7cc1c2cdd41d8
binder: add function to copy binder object from buffer

When creating or tearing down a transaction, the binder driver
examines objects in the buffer and takes appropriate action.
To do this without needing to dereference pointers into the
buffer, the local copies of the objects are needed. This patch
introduces a function to validate and copy binder objects
from the buffer to a local structure.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c