Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34295
b: refs/heads/master
c: 367fe71
h: refs/heads/master
i:
  34293: 2e2b5b7
  34291: fcae99e
  34287: b8aa6c2
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 22, 2006
1 parent e5e815e commit 2190c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: ba11203a11835737df980ef3dd3bd8325b9cc94e
refs/heads/master: 367fe711c5dc85dbc3265cf01e34d4d6fbd55f06
13 changes: 4 additions & 9 deletions trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,15 +992,10 @@ static int mmap_piobufs(struct vm_area_struct *vma,
pgprot_val(vma->vm_page_prot) &= ~_PAGE_GUARDED;
#endif

if (vma->vm_flags & VM_READ) {
dev_info(&dd->pcidev->dev,
"Can't map piobufs as readable (flags=%lx)\n",
vma->vm_flags);
ret = -EPERM;
goto bail;
}

/* don't allow them to later change to readable with mprotect */
/*
* don't allow them to later change to readable with mprotect (for when
* not initially mapped readable, as is normally the case)
*/
vma->vm_flags &= ~VM_MAYREAD;
vma->vm_flags |= VM_DONTCOPY | VM_DONTEXPAND;

Expand Down

0 comments on commit 2190c10

Please sign in to comment.