Skip to content
Snippets Groups Projects
Commit 99819458 authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

aboot: fix block addressing for don't care chunk type


CHUNK_TYPE_DONT_CARE should skip over the specified number of blocks, but
currently fails to increment the device block address. This results in
filesystem images getting written incorrectly. Add the missing block
address incrementing.

Cc: Steve Rae <srae@broadcom.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarSteve Rae <srae@broadcom.com>
parent ee665114
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,7 @@ void write_sparse_image(block_dev_desc_t *dev_desc,
break;
case CHUNK_TYPE_DONT_CARE:
blk += blkcnt;
total_blocks += chunk_header->chunk_sz;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment