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:
@@ -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