]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8974ea6777b7556b0ac31108f8c014e193217232
tree2614f6173c8debff511de456afccf88ad7baef66
parenta7a6663427b4940e82e5e5af6dcb4e16394bb734
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