Commit 308fbd8a authored by Bojan Prtvar's avatar Bojan Prtvar Committed by Greg Kroah-Hartman

Staging: android: add __user annotation in binder.c

This fixes the following sparse error
drivers/staging/android/binder.c:1795:36: error: incompatible types in comparison expression (different address spaces)
Signed-off-by: default avatarBojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 272b98c6
...@@ -1773,7 +1773,7 @@ int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread, ...@@ -1773,7 +1773,7 @@ int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
case BC_INCREFS_DONE: case BC_INCREFS_DONE:
case BC_ACQUIRE_DONE: { case BC_ACQUIRE_DONE: {
void __user *node_ptr; void __user *node_ptr;
void *cookie; void __user *cookie;
struct binder_node *node; struct binder_node *node;
if (get_user(node_ptr, (void * __user *)ptr)) if (get_user(node_ptr, (void * __user *)ptr))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment