]> git.sur5r.net Git - u-boot/commit
spl: fit: Fix the number of bytes read when reading fdt from fit
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 24 May 2016 05:04:37 +0000 (10:34 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:41:39 +0000 (15:41 -0400)
commit4d9d34a7f280ba0e14896d4157ede677899f83a2
tree48fa79eaf3fcc69617f4dd7953f409eebe6b0bed
parent53d150b1412bc1b2da07dfdeb2aa834ab62ec7ad
spl: fit: Fix the number of bytes read when reading fdt from fit

sectors field is not being updated when reading fdt from fit image. Because of
this size_of(u-boot.bin) is being read when reading fdt. Fixing it by updating
the sectors field properly.

Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
common/spl/spl_fit.c