mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Bojan Prtvar <prtvar.b@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
272b98c645
commit
308fbd8ac0
1 changed files with 1 additions and 1 deletions
|
@ -1773,7 +1773,7 @@ int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
|
|||
case BC_INCREFS_DONE:
|
||||
case BC_ACQUIRE_DONE: {
|
||||
void __user *node_ptr;
|
||||
void *cookie;
|
||||
void __user *cookie;
|
||||
struct binder_node *node;
|
||||
|
||||
if (get_user(node_ptr, (void * __user *)ptr))
|
||||
|
|
Loading…
Reference in a new issue