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

Commit 484dcbc8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "binder: use group leader instead of open thread"

parents 3fd074ea 1447131c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3361,7 +3361,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
	const char *failure_string;
	struct binder_buffer *buffer;

	if (proc->tsk != current)
	if (proc->tsk != current->group_leader)
		return -EINVAL;

	if ((vma->vm_end - vma->vm_start) > SZ_4M)
@@ -3463,8 +3463,8 @@ static int binder_open(struct inode *nodp, struct file *filp)
	proc = kzalloc(sizeof(*proc), GFP_KERNEL);
	if (proc == NULL)
		return -ENOMEM;
	get_task_struct(current);
	proc->tsk = current;
	get_task_struct(current->group_leader);
	proc->tsk = current->group_leader;
	INIT_LIST_HEAD(&proc->todo);
	init_waitqueue_head(&proc->wait);
	proc->default_priority = task_nice(current);