]> git.dujemihanovic.xyz Git - u-boot.git/commit
loadb: Properly indicate aborted kermit transfer
authorPali Rohár <pali@kernel.org>
Fri, 6 Aug 2021 16:07:39 +0000 (18:07 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 1 Sep 2021 23:25:37 +0000 (19:25 -0400)
commit515381414d5ce2032fbee6bb55206061660762bb
tree6a32a08561e1ff53fd8290cbd159e5c4024fa8eb
parente199fb35b4a04aa80c5623176c5925ab99bcd6c3
loadb: Properly indicate aborted kermit transfer

When k_recv() returns zero it indicates that kermit transfer was aborted.
Function do_load_serial_bin() (caller of load_serial_bin()) interprets
value ~0 as aborted transfer, so properly propagates information about
aborted transfer from k_recv() to do_load_serial_bin().

Signed-off-by: Pali Rohár <pali@kernel.org>
cmd/load.c