public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* NOR read/write beyond end of flash partition
@ 2006-11-30 13:15 Tigadi Kiran-r10350c
  2006-11-30 13:27 ` Artem Bityutskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Tigadi Kiran-r10350c @ 2006-11-30 13:15 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-12-05  5:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 13:15 NOR read/write beyond end of flash partition Tigadi Kiran-r10350c
2006-11-30 13:27 ` Artem Bityutskiy
2006-11-30 15:53   ` Tigadi Kiran-r10350c
2006-12-01  8:33     ` Artem Bityutskiy
2006-12-01  8:44     ` Artem Bityutskiy
2006-12-01  9:48       ` Tigadi Kiran-r10350c
2006-12-01  9:59         ` Artem Bityutskiy
2006-12-05  5:09           ` Tigadi Kiran-r10350c

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox