Searched hist:"4 ba73a5ac7d2ece1d17bb1c109d694ce306ac1af" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/tools/ |
| H A D | mksunxiboot.c | 4ba73a5ac7d2ece1d17bb1c109d694ce306ac1af Mon Jun 09 09:36:53 UTC 2014 Hans de Goede <hdegoede@redhat.com> 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>
|