spl: ymodem: Terminate YModem session on error
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 12 Mar 2019 03:02:39 +0000 (04:02 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 16:19:09 +0000 (18:19 +0200)
commit6d8dbe4862f0b343427fc4f2bd15aefab73706bf
tree9d669613192e9144c36a339029576ef1df4ba831
parent3c99166441bf3ea325af2da83cfe65430b49c066
spl: ymodem: Terminate YModem session on error

In case spl_parse_image_header() errors out, terminate the YModem
session, otherwise we won't get any further output.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
common/spl/spl_ymodem.c