Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288285
b: refs/heads/master
c: ce8fea7
h: refs/heads/master
i:
  288283: e39cef9
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Mar 6, 2012
1 parent 402d939 commit ddc0889
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 917ec63b61720b177271450399bca2f8c5168c0d
refs/heads/master: ce8fea7aa4ad9e3b40999a08622ef27c77159659
3 changes: 2 additions & 1 deletion trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,9 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
vma->vm_pgoff = pgoff;
INIT_LIST_HEAD(&vma->anon_vma_chain);

error = -EINVAL; /* when rejecting VM_GROWSDOWN|VM_GROWSUP */

if (file) {
error = -EINVAL;
if (vm_flags & (VM_GROWSDOWN|VM_GROWSUP))
goto free_vma;
if (vm_flags & VM_DENYWRITE) {
Expand Down

0 comments on commit ddc0889

Please sign in to comment.