Android 2.3.4 release 1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk255sAACgkQ6K0/gZqxDngIhQCdEY5JE4OTb4KYT0FBKuA29w/v
sFwAn1Drv/uKg6D2TsnMesVKAeDOWI7h
=+WvC
-----END PGP SIGNATURE-----
fix comparison of ECC stats before and after mtd reads

ECC errors are found by comparing the result of ioctl(ECCGETSTATS)
before and after the read.  But if an error was found causing us to go
to the next block, we'd compare the stats before the *first* read to
the stats after the second (third, fourth, etc.) reads, so we'd read
to the end of the partition without ever succeeding.  Fix logic so we
compare the values before and after each read independently.

Bug: 3162777
Change-Id: I5a13abd7243d2afd1d21bd98cbb233e5124b2e80
1 file changed