Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc251b49 authored by Bojan Prtvar's avatar Bojan Prtvar Committed by David Ng
Browse files

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: Icf6b3868442fc3e4f145c8d13de9626abc306cd1
Signed-off-by: default avatarBojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 308fbd8ac0b0078dba29cad027e5b454aac13a6a
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
parent a9756a71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1801,7 +1801,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))