|
@@ -3362,7 +3362,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
|
|
const char *failure_string;
|
|
const char *failure_string;
|
|
struct binder_buffer *buffer;
|
|
struct binder_buffer *buffer;
|
|
|
|
|
|
- if (proc->tsk != current)
|
|
|
|
|
|
+ if (proc->tsk != current->group_leader)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
if ((vma->vm_end - vma->vm_start) > SZ_4M)
|
|
if ((vma->vm_end - vma->vm_start) > SZ_4M)
|