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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 14:47:39 +0000 (07:47 -0700)
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>
drivers/staging/android/binder.c

index 98ac020bf912fb8efd11872c3e992265734f510b..19e6ba618f83b9bbc97c1360891b0b88adaea04a 100644 (file)
@@ -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))
This page took 0.025849 seconds and 5 git commands to generate.