Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328960
b: refs/heads/master
c: a79f41e
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 90a8d97 commit 4352952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c921b40d6201f7ec7b1edf7ea9a844f93e1a27f4
refs/heads/master: a79f41ed9786b75ebe75e52295ad54049b8551b6
5 changes: 4 additions & 1 deletion trunk/drivers/staging/android/binder.c
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,9 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
const char *failure_string;
struct binder_buffer *buffer;

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

if ((vma->vm_end - vma->vm_start) > SZ_4M)
vma->vm_end = vma->vm_start + SZ_4M;

Expand Down Expand Up @@ -2857,7 +2860,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
binder_insert_free_buffer(proc, buffer);
proc->free_async_space = proc->buffer_size / 2;
barrier();
proc->files = get_files_struct(proc->tsk);
proc->files = get_files_struct(current);
proc->vma = vma;
proc->vma_vm_mm = vma->vm_mm;

Expand Down

0 comments on commit 4352952

Please sign in to comment.