commit | 2fa0c8ffa71a436474b3052a9dd37d28183dc002 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Mon Jun 09 11:36:53 2014 +0200 |
committer | Ian Campbell <ijc@hellion.org.uk> | Sun Jul 06 17:41:13 2014 +0100 |
tree | 52f4e6e61000005fafbd0aba42deff641ca7fefb | |
parent | bff262c49ca837be293b7342fe8e3682ec25c53c [diff] |
sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4 We should not be aligning the amount of bytes which we try to read from the disk, this leads to trying to read more bytes then there are which fails. file_size is already aligned to BLOCK_SIZE before being stored in img.header.length, so there is no need for load_size at all. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>