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

Commit 20890207 authored by Xiaocheng Li's avatar Xiaocheng Li Committed by Michael Bohan
Browse files

drivers: binder: Fix risky coding style in binder_thread_write()



void *cookie as the parameter of get_user() should be defined with
qualifier __user.

Signed-off-by: default avatarXiaocheng Li <lix@codeaurora.org>
Change-Id: Ifcd84e26b873c49d692e23d8e5efe57b4111bc74
parent 54ad0a7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1791,7 +1791,7 @@ int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
		case BC_INCREFS_DONE:
		case BC_INCREFS_DONE:
		case BC_ACQUIRE_DONE: {
		case BC_ACQUIRE_DONE: {
			void __user *node_ptr;
			void __user *node_ptr;
			void *cookie;
			void __user *cookie;
			struct binder_node *node;
			struct binder_node *node;


			if (get_user(node_ptr, (void * __user *)ptr))
			if (get_user(node_ptr, (void * __user *)ptr))