NOR read/write beyond end of flash partition

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


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.

Regards,
Kiran

-----Original Message-----
From: Artem Bityutskiy [mailto:dedekind at infradead.org] 
Sent: Thursday, November 30, 2006 6:57 PM
To: Tigadi Kiran-r10350c
Cc: linux-mtd at lists.infradead.org
Subject: Re: NOR read/write beyond end of flash partition

Hello,

On Thu, 2006-11-30 at 18:45 +0530, Tigadi Kiran-r10350c wrote:
> 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. 

Sounds like a bug, feel free to send a patch against mtd-2.6.git tree.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtdchar_patch
Type: application/octet-stream
Size: 305 bytes
Desc: mtdchar_patch
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20061130/c7d1fc6d/attachment.obj 


More information about the linux-mtd mailing list