git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: actually remap enough memory
[pandora-kernel.git]
/
mm
/
memory.c
diff --git
a/mm/memory.c
b/mm/memory.c
index
b9a95f1
..
79c71de
100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-3836,7
+3836,7
@@
int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
if (follow_phys(vma, addr, write, &prot, &phys_addr))
return -EINVAL;
- maddr = ioremap_prot(phys_addr, PAGE_
SIZE
, prot);
+ maddr = ioremap_prot(phys_addr, PAGE_
ALIGN(len + offset)
, prot);
if (write)
memcpy_toio(maddr + offset, buf, len);
else