aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPali Rohár2021-08-03 16:28:41 +0200
committerTom Rini2021-09-03 14:32:41 -0400
commit1f26c49ea1d968ff59abe804af14314d5f5dc8de (patch)
tree7d08602f3ddeaf1e54282547c6956c6a52bb0a2e /cmd
parentf05d69bd0a264d622efef9649187946cfbccb930 (diff)
xyz-modem: Close stream after processing/sending terminate sequence
Obviously it is not possible to send terminate sequence over stream after closing stream. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 3904e133c4a..e0c896bb79a 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -1009,8 +1009,8 @@ static ulong load_serial_ymodem(ulong offset, int mode)
printf("%s\n", xyzModem_error(err));
}
- xyzModem_stream_close(&err);
xyzModem_stream_terminate(false, &getcxmodem);
+ xyzModem_stream_close(&err);
flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));