|
@@ -248,7 +248,7 @@ static unsigned long get_unmapped_area_mem(struct file *file,
|
|
{
|
|
{
|
|
if (!valid_mmap_phys_addr_range(pgoff, len))
|
|
if (!valid_mmap_phys_addr_range(pgoff, len))
|
|
return (unsigned long) -EINVAL;
|
|
return (unsigned long) -EINVAL;
|
|
- return pgoff;
|
|
|
|
|
|
+ return pgoff << PAGE_SHIFT;
|
|
}
|
|
}
|
|
|
|
|
|
/* can't do an in-place private mapping if there's no MMU */
|
|
/* can't do an in-place private mapping if there's no MMU */
|