ion: clean up ioctls
Convert the ion ioctls to use _IOW instead of _IOWR where appropriate, and factor out the copy_from_user and copy_to_user based on the _IOC_DIR bits. For the existing incorrect ioctls, add a function to wrap _IOC_DIR to return the corrected value. Change-Id: I3cc34c84b9c52305bdbec27a9224447b102fadcd Signed-off-by:Colin Cross <ccross@android.com> Git-commit: b2ee33eb98bd8240787f6b3a6acffdbab40653dc Git-repo: http://android.googlesource.com/kernel/common/ [mitchelh@codeaurora.org: merge conflict since we never renamed heap_mask -> heap_id_mask] Signed-off-by:
Mitchel Humpherys <mitchelh@codeaurora.org>
Loading
Please register or sign in to comment