RE: NOR read/write beyond end of flash partition

Artem Bityutskiy
2006-12-01T08:44:50Z

On Thu, 2006-11-30 at 21:23 +0530, Tigadi Kiran-r10350c wrote:
> Hi Artem,
>
> Please find attached patch for drivers/mtd/mtdchar.c file to fix NOR read beyond flash. Let me know whether it is valid fix.

I've looked at the code. Your patch is incorrect as mtd_read() should
return EOF if *ppos == mtd->size, not -ENOSPC.