Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174862
b: refs/heads/master
c: aa65607
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Dec 11, 2009
1 parent 1416621 commit 2d69bd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: e77414e0aad6a1b063ba5e5750c582c75327ea6a
refs/heads/master: aa65607373a4daf2010e8c3867b6317619f3c1a3
7 changes: 4 additions & 3 deletions trunk/arch/score/kernel/sys_score.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,

asmlinkage long
sys_mmap(unsigned long addr, unsigned long len, unsigned long prot,
unsigned long flags, unsigned long fd, off_t pgoff)
unsigned long flags, unsigned long fd, off_t offset)
{
/* where's the alignment check? */
return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT);
if (unlikely(offset & ~PAGE_MASK))
return -EINVAL;
return sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);
}

asmlinkage long
Expand Down

0 comments on commit 2d69bd4

Please sign in to comment.