diff options
author | Tom Rini <trini@konsulko.com> | 2016-05-17 12:10:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-17 12:10:35 -0400 |
commit | 27bec5c12757c80f598b704477c1bc6c250bcb4c (patch) | |
tree | 24920d248e78373128e603dd9a13584eb73be2d7 /common/spl/spl_ymodem.c | |
parent | d6b7757e41d22e08f21f58d3fe9183a150582f61 (diff) | |
parent | 291000894ed4d6257830baba547764b86e335b5c (diff) | |
download | u-boot-imx-27bec5c12757c80f598b704477c1bc6c250bcb4c.zip u-boot-imx-27bec5c12757c80f598b704477c1bc6c250bcb4c.tar.gz u-boot-imx-27bec5c12757c80f598b704477c1bc6c250bcb4c.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'common/spl/spl_ymodem.c')
-rw-r--r-- | common/spl/spl_ymodem.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 380d8dd..4f26ea5 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -40,8 +40,11 @@ int spl_ymodem_load_image(void) if (!ret) { while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { - if (addr == 0) - spl_parse_image_header((struct image_header *)buf); + if (addr == 0) { + ret = spl_parse_image_header((struct image_header *)buf); + if (ret) + return ret; + } store_addr = addr + spl_image.load_addr; size += res; addr += res; |