aboutsummaryrefslogtreecommitdiff
path: root/cmd/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/load.c')
-rw-r--r--cmd/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 3904e133c4..e0c896bb79 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));