Daniel Hobi 0ec81db202 Fix computation in nand_util.c:get_len_incl_bad
Depending on offset, flash size and the number of bad blocks,
get_len_incl_bad may return a too small value which may lead to:

1) If there are no bad blocks, nand_{read,write}_skip_bad chooses the
bad block aware read/write code. This may hurt performance, but does
not have any adverse effects.

2) If there are bad blocks, the nand_{read,write}_skip_bad may choose
the bad block unaware read/write code (if len_incl_bad == *length)
which leads to corrupted data.

Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
2009-12-07 22:38:16 +01:00
..
2009-09-04 21:53:37 +02:00
2009-10-03 10:17:56 +02:00
2009-09-04 21:54:52 +02:00
2009-09-04 21:54:04 +02:00
2009-07-29 09:57:43 +02:00
2009-04-04 20:42:19 +02:00