[U-Boot] [RFC PATCH 0/1] bug writing to NAND 1 byte less than page size

Hector Palacios hector.palacios at digi.com
Fri Jul 15 09:45:02 CEST 2016


Hi,

I found this bug on v2015.04 but I guess it happens also in v2016.07
as I believe it has been there since 2007.
It is so strange that nobody caught this before that I fear I'm doing
something wrong or not taking something into account on the suggested
fix, so I'd like to know if others can reproduce it and if the fix looks
correct.

I reproduced it on an i.MX6UL platform and on an i.MX28 platform but
it is a bug on the NAND core driver, so it should be reproducible with
any architecture. In fact, it is reproducible with any size, as long
as it is a multiple of the page size, less one byte.

Thanks in advance for your comments.

Hector Palacios (1):
  mtd: nand: fix bug writing 1 byte less than page size

 drivers/mtd/nand/nand_base.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the U-Boot mailing list