diff options
author | Pali Rohár | 2021-08-03 16:28:41 +0200 |
---|---|---|
committer | Tom Rini | 2021-09-03 14:32:41 -0400 |
commit | 1f26c49ea1d968ff59abe804af14314d5f5dc8de (patch) | |
tree | 7d08602f3ddeaf1e54282547c6956c6a52bb0a2e /cmd | |
parent | f05d69bd0a264d622efef9649187946cfbccb930 (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.c | 2 |
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)); |