mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09: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) Change-Id: I3824cb700d0de0e24c94771b1441e639d7d4d18b Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Riley Andrews
parent
c963d0f41d
commit
268fc12dd6
@@ -1774,7 +1774,7 @@ static int binder_thread_write(struct binder_proc *proc,
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user