[PATCH v3] mtdchar: fix mmap() for MTD RAM/ROM char devices
Mike Frysinger
vapier.adi at gmail.com
Sat Jun 12 21:31:11 EDT 2010
On Sat, Jun 12, 2010 at 15:35, Anatolij Gustschin wrote:
> For no-mmu systems mmap() on RAM/ROM devices already works
> but for systems with mmu it probably was not tested and
> currently doesn't work.
nope, never did
> + if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
> + return -EINVAL;
i'm pretty sure this is inappropriate and doesnt belong here
-mike
More information about the linux-mtd
mailing list