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>
This commit is contained in:
Pali Rohár authored and Tom Rini committed 2021-09-03 14:32:41 -04:00
1 parent f05d69bd0a
commit 1f26c49ea1
1 file changed
+1 -1
+1 -1
View File
@@ -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));