Skip to content

Commit b2a6d1b

Browse files
Martijn Coenengregkh
authored andcommitted
ANDROID: binder: fix proc->tsk check.
Commit c4ea41b ("binder: use group leader instead of open thread")' was incomplete and didn't update a check in binder_mmap(), causing all mmap() calls into the binder driver to fail. Signed-off-by: Martijn Coenen <[email protected]> Tested-by: John Stultz <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ef95484 commit b2a6d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3362,7 +3362,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
33623362
const char *failure_string;
33633363
struct binder_buffer *buffer;
33643364

3365-
if (proc->tsk != current)
3365+
if (proc->tsk != current->group_leader)
33663366
return -EINVAL;
33673367

33683368
if ((vma->vm_end - vma->vm_start) > SZ_4M)

0 commit comments

Comments
 (0)