Staging: android: add __user annotation in binder.c
authorBojan Prtvar <prtvar.b@gmail.com>
Sun, 1 Sep 2013 18:30:38 +0000 (20:30 +0200)
committerRiley Andrews <riandrews@google.com>
Tue, 13 Jan 2015 22:38:29 +0000 (22:38 +0000)
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>
drivers/staging/android/binder.c

index d9f4712ad99972605d391cff90f66d74baa752d6..1432d956769c2d5511716a5e8d3ea1eb5a667b68 100644 (file)
@@ -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))