Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356312
b: refs/heads/master
c: 5ca8b91
h: refs/heads/master
v: v3
  • Loading branch information
John David Anglin authored and Helge Deller committed Feb 20, 2013
1 parent 086e05d commit 70ed42c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 027f27c4eca00b4411fb1fe61c33060569ff73f6
refs/heads/master: 5ca8b91df88fa417aa7aac19494a8ae1602db2cb
9 changes: 5 additions & 4 deletions trunk/arch/parisc/kernel/sys_parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
{
if (len > TASK_SIZE)
return -ENOMEM;
/* Might want to check for cache aliasing issues for MAP_FIXED case
* like ARM or MIPS ??? --BenH.
*/
if (flags & MAP_FIXED)
if (flags & MAP_FIXED) {
if ((flags & MAP_SHARED) &&
(addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))
return -EINVAL;
return addr;
}
if (!addr)
addr = TASK_UNMAPPED_BASE;

Expand Down

0 comments on commit 70ed42c

Please sign in to comment.