Rafał Miłecki 79c8f2f50b mtd: improve check for TRX header being already fixed
First of all lengths should be compared after checking all blocks for
being good/bad. It's because requested length may differ from a final
one if there were some bad blocks.

Secondly it makes sense to also compare crc32 since we already have a
new one calculated.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 82498a7f7aa86ad0e93ef60d50dccaa0a9549e4c)
2018-07-17 07:17:48 +02:00
..
2018-03-04 17:37:15 +01:00
2017-12-08 14:17:38 +01:00
2018-02-09 09:22:45 +01:00
2018-05-14 10:29:20 +02:00
2017-04-27 14:38:05 +08:00
2017-02-25 11:15:46 +01:00