diff options
Diffstat (limited to 'arch/arm/mach-rockchip/bootm.c')
-rw-r--r-- | arch/arm/mach-rockchip/bootm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/bootm.c b/arch/arm/mach-rockchip/bootm.c index 4317fdefd6..6f4aa27808 100644 --- a/arch/arm/mach-rockchip/bootm.c +++ b/arch/arm/mach-rockchip/bootm.c @@ -88,7 +88,8 @@ static int do_bootm_rkns_barebox_image(struct image_data *data) file_type_to_string(filetype)); if (filetype == filetype_arm_barebox) { - barebox = buf + entry_start; + memmove(buf, buf + entry_start, image_size - entry_start); + barebox = buf; goto found; } } |