summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/sys_parisc.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-27 20:02:45 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-27 20:02:45 +0000
commit5b94e1816703c1f06646501c2474835416c35580 (patch)
tree56bada0b7eec657c8ea966573eb28d75eba9e6ed /arch/parisc/kernel/sys_parisc.c
parent80da549e5225c6f80d45f76ba2b3a4574ed278ae (diff)
parent9489e9dcae718d5fde988e4a684a0f55b5f94d17 (diff)
downloadop-kernel-dev-5b94e1816703c1f06646501c2474835416c35580.zip
op-kernel-dev-5b94e1816703c1f06646501c2474835416c35580.tar.gz
Merge tag 'v3.7-rc7' into asoc-wm2200
Linux 3.7-rc7
Diffstat (limited to 'arch/parisc/kernel/sys_parisc.c')
-rw-r--r--arch/parisc/kernel/sys_parisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/sys_parisc.c b/arch/parisc/kernel/sys_parisc.c
index 7426e40..f76c108 100644
--- a/arch/parisc/kernel/sys_parisc.c
+++ b/arch/parisc/kernel/sys_parisc.c
@@ -73,6 +73,8 @@ static unsigned long get_shared_area(struct address_space *mapping,
struct vm_area_struct *vma;
int offset = mapping ? get_offset(mapping) : 0;
+ offset = (offset + (pgoff << PAGE_SHIFT)) & 0x3FF000;
+
addr = DCACHE_ALIGN(addr - offset) + offset;
for (vma = find_vma(current->mm, addr); ; vma = vma->vm_next) {
OpenPOWER on IntegriCloud