NOR read/write beyond end of flash partition

Tigadi Kiran-r10350c
2006-11-30T13:16:47Z

Hi,

>From linux-2.6.10/drivers/mtd/mtdchar.c file mtd_write routine is
implemented to check MTD size (if (*ppos == mtd->size) and it will
return ENOSPC if you try to read beyond NOR MTD partition.

But mtd_read routine implemented in the same file does not have this
check. So when I try to read beyond end of NOR MTD partition it is
returning 0.

Please let me know if any code updates are required.

Regards,
Kiran