Message ID | 1427827583-25138-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/memory.c b/mm/memory.c index 7040326..0d58cbc 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4025,7 +4025,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