diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-28 02:08:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-28 02:08:37 +0200 |
commit | 80f73b2da09af8ba94c07c8f34774f4f79330321 (patch) | |
tree | 323f86aa882c412b041b6e2c90f886cf0a7e98f1 /drivers | |
parent | Merge tag 'staging-4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | ANDROID: binder: fix proc->tsk check. (diff) | |
download | linux-80f73b2da09af8ba94c07c8f34774f4f79330321.tar.xz linux-80f73b2da09af8ba94c07c8f34774f4f79330321.zip |
Merge tag 'char-misc-4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc fix from Greg KH:
"Here is a single misc driver fix for 4.13-rc7. It resolves a reported
problem in the Android binder driver due to previous patches in
4.13-rc.
It's been in linux-next with no reported issues"
* tag 'char-misc-4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
ANDROID: binder: fix proc->tsk check.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/android/binder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index f7665c31feca..831cdd7d197d 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -3362,7 +3362,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) |