|
@@ -3460,8 +3460,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);
|