diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-07-15 23:23:42 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2018-07-16 23:18:45 +0200 |
commit | 1086408b17fae23e362f8ed95163ebeefed007c7 (patch) | |
tree | 71959c7c09b53cb9df19b33fa1852ca9c95f786e /tools/xz | |
parent | 5dca299fabc466183fdc973871b5f66e6ee4252d (diff) | |
download | upstream-1086408b17fae23e362f8ed95163ebeefed007c7.tar.gz upstream-1086408b17fae23e362f8ed95163ebeefed007c7.tar.bz2 upstream-1086408b17fae23e362f8ed95163ebeefed007c7.zip |
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)
Diffstat (limited to 'tools/xz')
0 files changed, 0 insertions, 0 deletions