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:
1 parent
f05d69bd0a
commit
1f26c49ea1
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user