NOR read/write beyond end of flash partition

Tigadi Kiran-r10350c R10350C at freescale.com
Thu Nov 30 08:15:53 EST 2006


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




More information about the linux-mtd mailing list